fix(client): 通知が流れない問題を修正

This commit is contained in:
syuilo 2020-07-29 01:50:30 +09:00
parent 27e30bc398
commit 1b5402d62b

View file

@ -75,11 +75,12 @@ export default Vue.extend({
this.$root.stream.send('readNotification', { this.$root.stream.send('readNotification', {
id: notification.id id: notification.id
}); });
notification.isRead = true;
} }
this.prepend(notification); this.prepend({
...notification,
isRead: document.visibilityState === 'visible'
});
}, },
} }
}); });