Conversation.markRead: Return a promise so queueJob works
FREEBIE
This commit is contained in:
parent
785b117b86
commit
d269751dbc
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@
|
|||
conversationId: conversationId
|
||||
}));
|
||||
|
||||
this.getUnread().then(function(unreadMessages) {
|
||||
return this.getUnread().then(function(unreadMessages) {
|
||||
var oldUnread = unreadMessages.filter(function(message) {
|
||||
return message.get('received_at') <= newestUnreadDate;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue