diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-12-15 14:40:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 14:40:39 +0100 |
commit | 2733cdd35f119504fdb267e66cbf66f952b0757b (patch) | |
tree | 539c70e43ee8296d86dd36b80f6fb23734a14673 /src/stores | |
parent | Merge pull request #458 from meetfranz/feature/spellchecker-improvements (diff) | |
parent | fix(Notification): Remove notification sound when app is muted (diff) | |
download | ferdium-app-2733cdd35f119504fdb267e66cbf66f952b0757b.tar.gz ferdium-app-2733cdd35f119504fdb267e66cbf66f952b0757b.tar.zst ferdium-app-2733cdd35f119504fdb267e66cbf66f952b0757b.zip |
Merge pull request #463 from meetfranz/feature/improve-mute
fix(Notification): Remove notification sound when app is muted
Diffstat (limited to 'src/stores')
-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 | }); |