Re-hydrate signal protocol caches after import

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-11-20 10:49:54 -06:00 committed by GitHub
parent 192a68c5dc
commit c60a554f43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -315,6 +315,9 @@ export class BackupImportStream extends Writable {
window.storage.reset();
await window.storage.fetch();
// Load identity keys we just saved.
await window.storage.protocol.hydrateCaches();
const allConversations = window.ConversationController.getAll();
// Update last message in every active conversation now that we have