summaryrefslogtreecommitdiff
path: root/src/client/deck.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/deck.vue')
-rw-r--r--src/client/deck.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/deck.vue b/src/client/deck.vue
index d4d1fc07e6..dc662801f0 100644
--- a/src/client/deck.vue
+++ b/src/client/deck.vue
@@ -161,6 +161,11 @@ export default Vue.extend({
},
async onNotification(notification) {
+ const t = this.$store.state.i.includingNotificationTypes;
+ if (!!t && !t.includes(notification.type)) {
+ return;
+ }
+
if (document.visibilityState === 'visible') {
this.$root.stream.send('readNotification', {
id: notification.id
@@ -170,7 +175,6 @@ export default Vue.extend({
notification
});
}
-
this.$root.sound('notification');
},