Add the 'silent' flag to notifications
Because we play our own sounds
This commit is contained in:
parent
c2b487cc79
commit
fac539c102
2 changed files with 8 additions and 6 deletions
|
@ -47,9 +47,10 @@ export default class ElectronPlatform extends BasePlatform {
|
||||||
const notification = new global.Notification(
|
const notification = new global.Notification(
|
||||||
title,
|
title,
|
||||||
{
|
{
|
||||||
"body": msg,
|
body: msg,
|
||||||
"icon": avatarUrl,
|
icon: avatarUrl,
|
||||||
"tag": "vector"
|
tag: "vector",
|
||||||
|
silent: true, // we play our own sounds
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -69,9 +69,10 @@ export default class WebPlatform extends BasePlatform {
|
||||||
const notification = new global.Notification(
|
const notification = new global.Notification(
|
||||||
title,
|
title,
|
||||||
{
|
{
|
||||||
"body": msg,
|
body: msg,
|
||||||
"icon": avatarUrl,
|
icon: avatarUrl,
|
||||||
"tag": "vector"
|
tag: "vector",
|
||||||
|
silent: true, // we play our own sounds
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue