fix unread and notification not updating in UI

This commit is contained in:
Ajay Bura 2026-10-28 20:21:27 +05:30
commit 72371de4cb
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ export const useBindRoomToNotificationsAtom = (
}, [notifications, threadNotifications, setNotificationAtom, roomsNotificationPreferences]);
useEffect(() => {
if (!ct.firstSync) {
if (!ct.firstSync.read) {
processNotifications();
}
}, [ct.firstSync, processNotifications]);

View file

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