Remove global updateInbox, used scoped version
// FREEBIE
This commit is contained in:
parent
949cb8d8e3
commit
0509bb0f5d
3 changed files with 5 additions and 9 deletions
|
@ -132,13 +132,13 @@
|
|||
var message = initIncomingMessage(envelope.source, envelope.timestamp.toNumber());
|
||||
if (e.name === 'IncomingIdentityKeyError') {
|
||||
message.save({ errors : [e] }).then(function() {
|
||||
updateInbox();
|
||||
ConversationController.updateInbox();
|
||||
notifyConversation(message);
|
||||
});
|
||||
return;
|
||||
} else if (e.message !== 'Bad MAC') {
|
||||
message.save({ errors : [ _.pick(e, ['name', 'message'])]}).then(function() {
|
||||
updateInbox();
|
||||
ConversationController.updateInbox();
|
||||
notifyConversation(message);
|
||||
});
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue