diff --git a/src/client/components/notifications.vue b/src/client/components/notifications.vue index fa1e2fad7..dff4bd35d 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' + }); }, } });