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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user