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:
parent
6364cda7cb
commit
1c70293bba
2 changed files with 3 additions and 5 deletions
|
@ -18,8 +18,6 @@
|
|||
|
||||
textsecure.protocol_wrapper.startWorker();
|
||||
|
||||
ConversationController.updateInbox();
|
||||
|
||||
extension.onLaunched(function() {
|
||||
storage.onready(function() {
|
||||
if (textsecure.registration.isDone()) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
|
Loading…
Add table
Reference in a new issue