Unread counts

Update unreadCounts per-conversation on incoming messages. Render unread
conversations with font-weigh: bold in the inbox view.

To ensure that the inbox and conversation views remain in sync, the
background page now ensures that the same models objects are used for
both views.
This commit is contained in:
lilia 2015-03-11 12:06:19 -07:00
parent b9969b14b6
commit 019a9d1fbc
9 changed files with 49 additions and 7 deletions

View file

@ -194,6 +194,9 @@
}
}
attributes.active_at = now;
if (type === 'incoming') {
attributes.unreadCount = conversation.get('unreadCount') + 1;
}
conversation.set(attributes);
message.set({