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:
@@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
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,6 +37,9 @@
|
|||||||
}
|
}
|
||||||
}))();
|
}))();
|
||||||
|
|
||||||
|
// Load the initial set of models for the inbox.
|
||||||
|
conversations.fetchActive();
|
||||||
|
|
||||||
window.getInboxCollection = function() {
|
window.getInboxCollection = function() {
|
||||||
return inboxCollection;
|
return inboxCollection;
|
||||||
};
|
};
|
||||||
@@ -68,9 +71,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
|
||||||
updateInbox: function() {
|
|
||||||
conversations.fetchActive();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user