fix: refactor to fix merge issues with messageStore and unread counts

This commit is contained in:
Dan Ditomaso committed 2025-04-05 11:46:32 -04:00
1 parent 494a35a0c3
commit e80d8e73ae
3 files changed
+16 -15

No files matched your search

+2
View File
@@ -60,6 +60,7 @@ export interface Device {
// currentMetrics: Protobuf.DeviceMetrics;
pendingSettingsChanges: boolean;
messageDraft: string;
unreadCounts: Map<number, number>;
dialog: {
import: boolean;
QR: boolean;
@@ -159,6 +160,7 @@ export const useDeviceStore = createStore<DeviceState>((set, get) => ({
pendingSettingsChanges: false,
messageDraft: "",
nodeErrors: new Map(),
unreadCounts: new Map(),
setStatus: (status: Types.DeviceStatusEnum) => {