Remove global updateInbox, used scoped version

// FREEBIE
This commit is contained in:
lilia 2015-09-07 17:32:20 -07:00
parent 949cb8d8e3
commit 0509bb0f5d
3 changed files with 5 additions and 9 deletions

View file

@ -72,7 +72,7 @@
timestamp : now,
lastMessage : body
}).then(function() {
updateInbox();
ConversationController.updateInbox();
});
var sendFunc;
@ -96,7 +96,7 @@
});
if (keyErrors.length) {
message.save({ errors : keyErrors }).then(function() {
updateInbox();
ConversationController.updateInbox();
});
} else {
if (!(errors instanceof Array)) {
@ -188,7 +188,7 @@
_.each(models, function(message) { message.destroy(); });
this.archive();
return this.save().then(function() {
updateInbox();
ConversationController.updateInbox();
});
},