mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user