Skip to content

Commit

Permalink
fix(Notification): Remove notification sound when app is muted
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Dec 13, 2017
1 parent 3ccbcf5 commit 53fde0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/ServicesStore.js
Expand Up @@ -297,7 +297,7 @@ export default class ServicesStore extends Store {
});
} else if (channel === 'notification') {
const options = args[0].options;
if (service.recipe.hasNotificationSound || service.isMuted) {
if (service.recipe.hasNotificationSound || service.isMuted || this.stores.settings.all.isAppMuted) {
Object.assign(options, {
silent: true,
});
Expand Down

0 comments on commit 53fde0c

Please sign in to comment.