diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue index b9fb342a19..5b5851c482 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()); onUnmounted(() => { if (readObserver) readObserver.disconnect();