mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix missing all chat folder on startup without new manifest
This commit is contained in:
@@ -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
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user