diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-12-13 11:21:05 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2017-12-13 11:21:05 +0100 |
commit | 53fde0c7b31b5c79a81702c4338d1e9beb47e44f (patch) | |
tree | 64266eff211ec2380aa44a0a033a4ad05594821b /src/stores/ServicesStore.js | |
parent | fix missing filter for indirectMessageBadge (diff) | |
download | ferdium-app-53fde0c7b31b5c79a81702c4338d1e9beb47e44f.tar.gz ferdium-app-53fde0c7b31b5c79a81702c4338d1e9beb47e44f.tar.zst ferdium-app-53fde0c7b31b5c79a81702c4338d1e9beb47e44f.zip |
fix(Notification): Remove notification sound when app is muted
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index b04aafd78..113df6d55 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -297,7 +297,7 @@ export default class ServicesStore extends Store { | |||
297 | }); | 297 | }); |
298 | } else if (channel === 'notification') { | 298 | } else if (channel === 'notification') { |
299 | const options = args[0].options; | 299 | const options = args[0].options; |
300 | if (service.recipe.hasNotificationSound || service.isMuted) { | 300 | if (service.recipe.hasNotificationSound || service.isMuted || this.stores.settings.all.isAppMuted) { |
301 | Object.assign(options, { | 301 | Object.assign(options, { |
302 | silent: true, | 302 | silent: true, |
303 | }); | 303 | }); |