Fix missing all chat folder on startup without new manifest

This commit is contained in:
Jamie Kyle
2025-10-01 16:59:29 -07:00
committed by GitHub
parent bf217a8513
commit 4973b9b204
9 changed files with 192 additions and 92 deletions
+11
View File
@@ -271,3 +271,14 @@ export function lookupCurrentChatFolder(
strictAssert(chatFolder != null, 'Missing chat folder');
return chatFolder;
}
export function hasAllChatsChatFolder(
chatFolders: ReadonlyArray<ChatFolder>
): boolean {
return chatFolders.some(chatFolder => {
return (
chatFolder.folderType === ChatFolderType.ALL &&
chatFolder.deletedAtTimestampMs === 0
);
});
}