Better handle large numbers of messages in cache on startup
This commit is contained in:
parent
102c2717cb
commit
2cfbfe477a
5 changed files with 56 additions and 21 deletions
|
@ -9,6 +9,9 @@
|
|||
window.textsecure.storage = window.textsecure.storage || {};
|
||||
|
||||
window.textsecure.storage.unprocessed = {
|
||||
getCount() {
|
||||
return textsecure.storage.protocol.getUnprocessedCount();
|
||||
},
|
||||
getAll() {
|
||||
return textsecure.storage.protocol.getAllUnprocessed();
|
||||
},
|
||||
|
@ -24,5 +27,8 @@
|
|||
remove(id) {
|
||||
return textsecure.storage.protocol.removeUnprocessed(id);
|
||||
},
|
||||
removeAll() {
|
||||
return textsecure.storage.protocol.removeAllUnprocessed();
|
||||
},
|
||||
};
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue