aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-29 21:27:26 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-11-29 21:27:26 +0100
commit0fa1cafeae39c00a9102a1a1d83a422d600a80d0 (patch)
tree2ed867edcc255ae8e558bdcb059248f6ec9021cc /src/stores/AppStore.js
parentMerge pull request #359 from jaebradley/fix-i-want-add-services-manually-typo (diff)
downloadferdium-app-0fa1cafeae39c00a9102a1a1d83a422d600a80d0.tar.gz
ferdium-app-0fa1cafeae39c00a9102a1a1d83a422d600a80d0.tar.zst
ferdium-app-0fa1cafeae39c00a9102a1a1d83a422d600a80d0.zip
fix(App): App mute now disables notifications as well
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 0b7c60bce..71b41e499 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -150,6 +150,8 @@ export default class AppStore extends Store {
150 150
151 // Actions 151 // Actions
152 @action _notify({ title, options, notificationId, serviceId = null }) { 152 @action _notify({ title, options, notificationId, serviceId = null }) {
153 if (this.stores.settings.all.isAppMuted) return;
154
153 const notification = new window.Notification(title, options); 155 const notification = new window.Notification(title, options);
154 notification.onclick = (e) => { 156 notification.onclick = (e) => {
155 if (serviceId) { 157 if (serviceId) {