Conversation.markRead: Return a promise so queueJob works

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-07 15:16:01 -07:00
parent 785b117b86
commit d269751dbc

View file

@ -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;
});