mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
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:
@@ -68,6 +68,7 @@
|
||||
|
||||
storage.fetch();
|
||||
storage.onready(function() {
|
||||
window.dispatchEvent(new Event('storage_ready'));
|
||||
setUnreadCount(storage.get("unreadCount", 0));
|
||||
|
||||
if (textsecure.registration.isDone()) {
|
||||
|
||||
Reference in New Issue
Block a user