WORK IN PROGRESS
This commit is contained in:
parent
b040c4da2f
commit
852e4db958
5 changed files with 21 additions and 17 deletions
|
|
@ -115,14 +115,14 @@ export default defineComponent({
|
|||
|
||||
this.connection = os.stream.useSharedConnection('main');
|
||||
|
||||
// 既読処理
|
||||
// notification.isReadは更新しないので注意
|
||||
this.connection.on('readAllNotifications', () => {
|
||||
this.readObserver.unobserve(this.$el);
|
||||
this.notification = markNotificationRead(this.notification);
|
||||
});
|
||||
this.connection.on('readNotifications', notificationIds => {
|
||||
if (notificationIds.includes(this.notification.id)) {
|
||||
this.readObserver.unobserve(this.$el);
|
||||
this.notification = markNotificationRead(this.notification);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue