From 18012688eab4cf5e7e2e2e6a81c706d706843518 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 11 Apr 2016 15:08:44 -0700 Subject: [PATCH] Log unread message timestamps // FREEBIE --- js/models/conversations.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/models/conversations.js b/js/models/conversations.js index 1e35a65a..df1c331e 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -46,6 +46,9 @@ countUnread: function() { return this.getUnread().then(function(unreadMessages) { this.save({unreadCount: unreadMessages.length}); + if (unreadMessages.length) { + console.log(this.id, 'unread messages:', unreadMessages.pluck('sent_at')); + } }.bind(this)); },