This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-26 23:55:37 -04:00
1 parent e5a08d5220
commit 8ddf119570
4 files changed
+24 -4

No files matched your search

+7
View File
@@ -137,6 +137,7 @@
upsertChat?: (chat: Record<string, unknown>) => unknown;
setChatActive?: (chatId: string, active: boolean) => boolean;
setChatReadAt?: (chatId: string, lastReadAt: number) => boolean;
setAllChatsRead?: () => unknown;
}
> = {};
@@ -455,7 +456,13 @@
if (!res) return;
showChatsMenu = false;
if (res.folder_unread_counts) {
applyFolderUnreadCounts(res.folder_unread_counts);
}
setAllChatsRead();
for (const folder of Object.values(folderRegistry)) {
folder?.setAllChatsRead?.();
}
};
const importChatHandler = async (items, pinned = false, folderId = null) => {