You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/js/signal_protocol_store.js

34 lines
730 B
JavaScript

/*
global
Backbone,
_,
BlockedNumberController
*/
/* eslint-disable no-proto */
// eslint-disable-next-line func-names
(function() {
'use strict';
function SignalProtocolStore() {}
SignalProtocolStore.prototype = {
constructor: SignalProtocolStore,
async removeAllData() {
await window.Signal.Data.removeAll();
window.storage.reset();
await window.storage.fetch();
window.getConversationController().reset();
BlockedNumberController.reset();
await window.getConversationController().load();
await BlockedNumberController.load();
},
};
_.extend(SignalProtocolStore.prototype, Backbone.Events);
window.SignalProtocolStore = SignalProtocolStore;
})();