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

@ -238,6 +238,10 @@
appView.openInbox();
}
});
window.addEventListener('focus', () => Whisper.Notifications.clear());
window.addEventListener('unload', () => Whisper.Notifications.clear());
Whisper.events.on('showConversation', function(conversation) {
if (appView) {
appView.openConversation(conversation);