mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
fix(client): 通知が流れない問題を修正
This commit is contained in:
parent
27e30bc398
commit
1b5402d62b
1 changed files with 4 additions and 3 deletions
|
@ -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'
|
||||
});
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue