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:
parent
b9969b14b6
commit
019a9d1fbc
9 changed files with 49 additions and 7 deletions
|
@ -42,7 +42,8 @@
|
|||
}
|
||||
|
||||
window.openConversation = function openConversation (modelId) {
|
||||
var conversation = conversations.add({id: modelId});
|
||||
var conversation = window.inbox.get(modelId) || {id: modelId};
|
||||
conversation = conversations.add(conversation);
|
||||
conversation.fetch().then(function() {
|
||||
conversation.fetchContacts();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue