summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-07-29 01:50:30 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-07-29 01:50:30 +0900
commit9f94f60ededccfb3ff109aef1241be633d27eaa7 (patch)
treecd711cf3cfb864532a919689d8edf06b0ca3ca41
parent12.44.0 (diff)
downloadsharkey-9f94f60ededccfb3ff109aef1241be633d27eaa7.tar.gz
sharkey-9f94f60ededccfb3ff109aef1241be633d27eaa7.tar.bz2
sharkey-9f94f60ededccfb3ff109aef1241be633d27eaa7.zip
fix(client): 通知が流れない問題を修正
-rw-r--r--src/client/components/notifications.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/components/notifications.vue b/src/client/components/notifications.vue
index fa1e2fad71..dff4bd35da 100644
--- a/src/client/components/notifications.vue
+++ b/src/client/components/notifications.vue
@@ -75,11 +75,12 @@ export default Vue.extend({
this.$root.stream.send('readNotification', {
id: notification.id
});
-
- notification.isRead = true;
}
- this.prepend(notification);
+ this.prepend({
+ ...notification,
+ isRead: document.visibilityState === 'visible'
+ });
},
}
});