diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue index dbd6b61c2b..57b9f16afd 100644 --- a/packages/client/src/components/notification.vue +++ b/packages/client/src/components/notification.vue @@ -119,7 +119,7 @@ export default defineComponent({ readObserver.observe(elRef.value); const connection = os.stream.useChannel('main'); - connection.on('readAllNotifications', () => readObserver.unobserve(elRef.value)); + connection.on('readAllNotifications', () => readObserver.disconnect()); watch(props.notification.isRead, () => { readObserver.unobserve(elRef.value);