Remove unnecessary 'tag' from Notification construction
This commit is contained in:
parent
32fa5cccde
commit
0e5f405b53
1 changed files with 2 additions and 4 deletions
|
@ -137,15 +137,13 @@
|
||||||
|
|
||||||
drawAttention();
|
drawAttention();
|
||||||
|
|
||||||
const notification = new Notification(title, {
|
this.lastNotification = new Notification(title, {
|
||||||
body: message,
|
body: message,
|
||||||
icon: iconUrl,
|
icon: iconUrl,
|
||||||
tag: isNotificationGroupingSupported ? 'signal' : undefined,
|
|
||||||
silent: !status.shouldPlayNotificationSound,
|
silent: !status.shouldPlayNotificationSound,
|
||||||
});
|
});
|
||||||
notification.onclick = () =>
|
this.lastNotification.onclick = () =>
|
||||||
this.trigger('click', last.conversationId, last.id);
|
this.trigger('click', last.conversationId, last.id);
|
||||||
this.lastNotification = notification;
|
|
||||||
|
|
||||||
// We continue to build up more and more messages for our notifications
|
// We continue to build up more and more messages for our notifications
|
||||||
// until the user comes back to our app or closes the app. Then we’ll
|
// until the user comes back to our app or closes the app. Then we’ll
|
||||||
|
|
Loading…
Add table
Reference in a new issue