Remove global updateInbox method

This operation now needs to be done exactly once, at startup, so we
don't need to expose a global method for it.

// FREEBIE
This commit is contained in:
lilia
2015-09-17 13:44:44 -07:00
parent 6364cda7cb
commit 1c70293bba
2 changed files with 3 additions and 5 deletions

View File

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

View File

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