Better sync between convo and protocol stores
This commit is contained in:
parent
442cc43b94
commit
fbf91a4d79
10 changed files with 195 additions and 14 deletions
|
@ -2708,7 +2708,16 @@ export class SignalProtocolStore extends EventEmitter {
|
|||
}
|
||||
|
||||
async removeAllConfiguration(): Promise<void> {
|
||||
// Conversations. These properties are not present in redux.
|
||||
window.getConversations().forEach(conversation => {
|
||||
conversation.unset('storageID');
|
||||
conversation.unset('needsStorageServiceSync');
|
||||
conversation.unset('storageUnknownFields');
|
||||
conversation.unset('senderKeyInfo');
|
||||
});
|
||||
|
||||
await window.Signal.Data.removeAllConfiguration();
|
||||
|
||||
await this.hydrateCaches();
|
||||
|
||||
window.storage.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue