Notification improvements

- Remove on read, on focus, and on exit.
- Show multi-message notifications like '5 new messages'.
This commit is contained in:
Daniel Gasienica 2018-05-09 18:12:31 -04:00
parent f693c00778
commit 3bf8a8966a
7 changed files with 104 additions and 23 deletions

View file

@ -25,6 +25,7 @@
);
});
if (message) {
Whisper.Notifications.remove(message);
return message.markRead(receipt.get('read_at')).then(
function() {
this.notifyConversation(message);