From 72371de4cbda541e5cd91b070c888b46b29bb86f Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Wed, 28 Oct 2026 20:21:27 +0530 Subject: [PATCH] fix unread and notification not updating in UI --- src/app/state/room/roomToNotifications.ts | 2 +- src/app/state/room/roomToUnread.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/state/room/roomToNotifications.ts b/src/app/state/room/roomToNotifications.ts index 9ef75ec2..4c05eaed 100644 --- a/src/app/state/room/roomToNotifications.ts +++ b/src/app/state/room/roomToNotifications.ts @@ -54,7 +54,7 @@ export const useBindRoomToNotificationsAtom = ( }, [notifications, threadNotifications, setNotificationAtom, roomsNotificationPreferences]); useEffect(() => { - if (!ct.firstSync) { + if (!ct.firstSync.read) { processNotifications(); } }, [ct.firstSync, processNotifications]); diff --git a/src/app/state/room/roomToUnread.ts b/src/app/state/room/roomToUnread.ts index 92f2a901..e957bcea 100644 --- a/src/app/state/room/roomToUnread.ts +++ b/src/app/state/room/roomToUnread.ts @@ -29,7 +29,7 @@ export const useBindUnreadRoomsAtom = (ct: ClientContext, unreadRooms: typeof un }, [ct, setUnreadRooms, userReadReceipts, roomToLatestEvent]); useEffect(() => { - if (!ct.firstSync) { + if (!ct.firstSync.read) { proccessUnread(); } }, [ct.firstSync, proccessUnread]);