Disable notification grouping on Windows 7
This commit is contained in:
parent
5d230d3778
commit
c2407c8906
1 changed files with 2 additions and 3 deletions
|
@ -100,16 +100,15 @@
|
||||||
|
|
||||||
drawAttention();
|
drawAttention();
|
||||||
|
|
||||||
|
const isNotificationGroupingSupported = Settings.isNotificationGroupingSupported();
|
||||||
const notification = new Notification(title, {
|
const notification = new Notification(title, {
|
||||||
body: message,
|
body: message,
|
||||||
icon: iconUrl,
|
icon: iconUrl,
|
||||||
tag: 'signal',
|
tag: isNotificationGroupingSupported ? 'signal' : undefined,
|
||||||
silent: !status.shouldPlayNotificationSound,
|
silent: !status.shouldPlayNotificationSound,
|
||||||
});
|
});
|
||||||
|
|
||||||
notification.onclick = () => this.onClick(last.get('conversationId'));
|
notification.onclick = () => this.onClick(last.get('conversationId'));
|
||||||
|
|
||||||
// We don't want to notify the user about these same messages again
|
|
||||||
this.clear();
|
this.clear();
|
||||||
},
|
},
|
||||||
getUserSetting() {
|
getUserSetting() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue