1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-03 09:19:03 +09:00
tamaina 2020-05-24 18:41:40 +09:00
parent baa49271df
commit 05c7cacdd1

View File

@ -71,10 +71,11 @@ export default Vue.extend({
methods: {
onNotification(notification) {
// TODO: ()
this.$root.stream.send('readNotification', {
id: notification.id
});
if (document.visibilityState === 'visible') {
this.$root.stream.send('readNotification', {
id: notification.id
});
}
this.prepend(notification);
},