fix unread and notification not updating in UI

This commit is contained in:
Ajay Bura committed 2026-10-28 20:21:27 +05:30
1 parent 6f4f9c74b4
commit 72371de4cb
2 files changed
+2 -2

No files matched your search

+1 -1
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]);
+1 -1
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]);