Re-hydrate signal protocol caches after import

This commit is contained in:
Fedor Indutny 2024-11-19 16:36:53 -08:00 committed by GitHub
parent 8cb80f66dc
commit cd3e82c098
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(); window.storage.reset();
await window.storage.fetch(); await window.storage.fetch();
// Load identity keys we just saved.
await window.storage.protocol.hydrateCaches();
const allConversations = window.ConversationController.getAll(); const allConversations = window.ConversationController.getAll();
// Update last message in every active conversation now that we have // Update last message in every active conversation now that we have