diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-07-29 01:50:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-07-29 01:50:30 +0900 |
| commit | 9f94f60ededccfb3ff109aef1241be633d27eaa7 (patch) | |
| tree | cd711cf3cfb864532a919689d8edf06b0ca3ca41 | |
| parent | 12.44.0 (diff) | |
| download | sharkey-9f94f60ededccfb3ff109aef1241be633d27eaa7.tar.gz sharkey-9f94f60ededccfb3ff109aef1241be633d27eaa7.tar.bz2 sharkey-9f94f60ededccfb3ff109aef1241be633d27eaa7.zip | |
fix(client): 通知が流れない問題を修正
| -rw-r--r-- | src/client/components/notifications.vue | 7 |
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' + }); }, } }); |