Better handle large numbers of messages in cache on startup

This commit is contained in:
Scott Nonnenberg 2018-09-28 15:51:26 -07:00
parent 102c2717cb
commit 2cfbfe477a
5 changed files with 56 additions and 21 deletions

View file

@ -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();
},
};
})();