Notification improvements
- Remove on read, on focus, and on exit. - Show multi-message notifications like '5 new messages'.
This commit is contained in:
parent
f693c00778
commit
3bf8a8966a
7 changed files with 104 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue