Refactor: db tasks to database.js, log delete to modules/logs.js

This commit is contained in:
Scott Nonnenberg 2018-03-07 16:16:03 -08:00 committed by Scott Nonnenberg
parent 3527740598
commit 26c273618a
No known key found for this signature in database
GPG key ID: 5F82280C35134661
10 changed files with 196 additions and 191 deletions

View file

@ -860,14 +860,14 @@
ConversationController.reset(); // conversations store
// Then, the entire database:
return window.Whisper.Backup.clearDatabase();
return Whisper.Database.clear();
},
removeAllConfiguration: function() {
// First the in-memory cache for the items store:
window.storage.reset();
// Then anything in the database that isn't a message/conversation/group:
return window.Whisper.Backup.clearStores([
return Whisper.Database.clearStores([
'items',
'identityKeys',
'sessions',