Revert "Remove global updateInbox method"

This reverts commit 1c70293bba.

This broke tests by blocking the database deletion during test
setup.
pull/749/head
lilia 10 years ago
parent 87ce3241c8
commit c167fc964d

@ -18,6 +18,8 @@
textsecure.protocol_wrapper.startWorker(); textsecure.protocol_wrapper.startWorker();
ConversationController.updateInbox();
extension.onLaunched(function() { extension.onLaunched(function() {
storage.onready(function() { storage.onready(function() {
if (textsecure.registration.isDone()) { if (textsecure.registration.isDone()) {

@ -37,9 +37,6 @@
} }
}))(); }))();
// Load the initial set of models for the inbox.
conversations.fetchActive();
window.getInboxCollection = function() { window.getInboxCollection = function() {
return inboxCollection; return inboxCollection;
}; };
@ -71,6 +68,9 @@
} }
}); });
}); });
},
updateInbox: function() {
conversations.fetchActive();
} }
}; };
})(); })();

Loading…
Cancel
Save