From f88b33a135befdf73a476ebcac32f8375c54d7e9 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 26 Feb 2016 12:27:44 -0800 Subject: [PATCH] Fix unread message lookup in markRead // FREEBIE --- js/models/conversations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 75e59046..5d6363f7 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -211,7 +211,7 @@ })); var readReceipts = this.messageCollection.where({ - type: 'incoming', unread: true + type: 'incoming', unread: 1 }).map(function(m) { m.markRead(); return {