aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 84f84891a..f79197c38 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -70,6 +70,7 @@ export default class ServicesStore extends Store {
70 this._mapActiveServiceToServiceModelReaction.bind(this), 70 this._mapActiveServiceToServiceModelReaction.bind(this),
71 this._saveActiveService.bind(this), 71 this._saveActiveService.bind(this),
72 this._logoutReaction.bind(this), 72 this._logoutReaction.bind(this),
73 this._handleMuteSettings.bind(this),
73 ]); 74 ]);
74 75
75 // Just bind this 76 // Just bind this
@@ -622,6 +623,20 @@ export default class ServicesStore extends Store {
622 } 623 }
623 } 624 }
624 625
626 _handleMuteSettings() {
627 const { enabled } = this;
628 const { isAppMuted } = this.stores.settings.app;
629
630 enabled.forEach((service) => {
631 const { isAttached } = service;
632 const isMuted = isAppMuted || service.isMuted;
633
634 if (isAttached) {
635 service.webview.setAudioMuted(isMuted);
636 }
637 });
638 }
639
625 _shareSettingsWithServiceProcess() { 640 _shareSettingsWithServiceProcess() {
626 const settings = this.stores.settings.app; 641 const settings = this.stores.settings.app;
627 this.actions.service.sendIPCMessageToAllServices({ 642 this.actions.service.sendIPCMessageToAllServices({