Remove backbone as a dependency
Co-authored-by: Yash <yash@signal.org> Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
parent
4fc9793cae
commit
237e239e05
69 changed files with 963 additions and 2110 deletions
|
@ -2621,11 +2621,13 @@ 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');
|
||||
window.ConversationController.getAll().forEach(conversation => {
|
||||
conversation.set({
|
||||
storageID: undefined,
|
||||
needsStorageServiceSync: undefined,
|
||||
storageUnknownFields: undefined,
|
||||
senderKeyInfo: undefined,
|
||||
});
|
||||
});
|
||||
|
||||
await DataWriter.removeAllConfiguration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue