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

This commit is contained in:
Dan Ditomaso
2025-04-05 11:46:32 -04:00
parent 494a35a0c3
commit e80d8e73ae
3 changed files with 16 additions and 15 deletions
+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) => {