Show group names in notifications, and only show the latest
This commit is contained in:
parent
496a90efbb
commit
91a591c6ca
7 changed files with 161 additions and 364 deletions
|
@ -46,12 +46,9 @@
|
|||
|
||||
return item.isIncoming() && senderId === receipt.get('senderId');
|
||||
});
|
||||
const notificationForMessage = found
|
||||
? Whisper.Notifications.findWhere({ messageId: found.id })
|
||||
: null;
|
||||
Whisper.Notifications.remove(notificationForMessage);
|
||||
|
||||
if (!found) {
|
||||
if (found) {
|
||||
Whisper.Notifications.removeBy({ messageId: found.id });
|
||||
} else {
|
||||
window.log.info(
|
||||
'No message for read sync',
|
||||
receipt.get('senderId'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue