From fac539c1025c1067a1194ad641b2f964ff5b302d Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 26 Oct 2016 15:10:53 +0100 Subject: [PATCH] Add the 'silent' flag to notifications Because we play our own sounds --- src/vector/platform/ElectronPlatform.js | 7 ++++--- src/vector/platform/WebPlatform.js | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index cb0e343afb..d02b04321d 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -47,9 +47,10 @@ export default class ElectronPlatform extends BasePlatform { const notification = new global.Notification( title, { - "body": msg, - "icon": avatarUrl, - "tag": "vector" + body: msg, + icon: avatarUrl, + tag: "vector", + silent: true, // we play our own sounds } ); diff --git a/src/vector/platform/WebPlatform.js b/src/vector/platform/WebPlatform.js index 563b01cdb2..918a824dd4 100644 --- a/src/vector/platform/WebPlatform.js +++ b/src/vector/platform/WebPlatform.js @@ -69,9 +69,10 @@ export default class WebPlatform extends BasePlatform { const notification = new global.Notification( title, { - "body": msg, - "icon": avatarUrl, - "tag": "vector" + body: msg, + icon: avatarUrl, + tag: "vector", + silent: true, // we play our own sounds } );