Make migrations more robust
Occasionally these will fail if they happen to be executed before the necessary dependencies (storage, ConversationCollection) are declared. // FREEBIE
This commit is contained in:
parent
48626ceafb
commit
b8602a3b42
2 changed files with 47 additions and 29 deletions
|
@ -68,6 +68,7 @@
|
|||
|
||||
storage.fetch();
|
||||
storage.onready(function() {
|
||||
window.dispatchEvent(new Event('storage_ready'));
|
||||
setUnreadCount(storage.get("unreadCount", 0));
|
||||
|
||||
if (textsecure.registration.isDone()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue