Revert "Remove global updateInbox method"

This reverts commit 1c70293bba.

This broke tests by blocking the database deletion during test
setup.
This commit is contained in:
lilia 2015-09-17 15:25:45 -07:00
parent 87ce3241c8
commit c167fc964d
2 changed files with 5 additions and 3 deletions

View file

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

View file

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