WORK IN PROGRESS

This commit is contained in:
tamaina
2021-02-21 14:35:54 +09:00
parent b040c4da2f
commit 852e4db958
5 changed files with 21 additions and 17 deletions

View File

@@ -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);
}
})
}