Refactor: db tasks to database.js, log delete to modules/logs.js
This commit is contained in:
parent
3527740598
commit
26c273618a
10 changed files with 196 additions and 191 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue