From 9f94f60ededccfb3ff109aef1241be633d27eaa7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 29 Jul 2020 01:50:30 +0900 Subject: fix(client): 通知が流れない問題を修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/notifications.vue | 7 ++++--- 1 file 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' + }); }, } }); -- cgit v1.2.3-freya