Remove messages from notifications when read

Remove individual messages from Notifications when marked read.
Previously this was only done from the conversation model when marking
the entire conversation as read.

Fixes #717

// FREEBIE
pull/749/head
lilia 9 years ago
parent fd8bac2003
commit 0763cf14a3

@ -403,7 +403,8 @@
message : message.getNotificationText(),
iconUrl : iconUrl,
imageUrl : message.getImageUrl(),
conversationId : conversationId
conversationId : conversationId,
messageId : message.id
});
});
});

@ -367,6 +367,9 @@
},
markRead: function(sync) {
this.unset('unread');
Whisper.Notifications.remove(Whisper.Notifications.where({
messageId: this.id
}));
return this.save();
}

Loading…
Cancel
Save