mirror of
https://github.com/cinnyapp/cinny.git
synced 2026-12-04 15:52:19 -08:00
fix unread and notification not updating in UI
This commit is contained in:
1 parent
6f4f9c74b4
commit
72371de4cb
2 files changed
+2
-2
No files matched your search
@@ -54,7 +54,7 @@ export const useBindRoomToNotificationsAtom = (
|
||||
}, [notifications, threadNotifications, setNotificationAtom, roomsNotificationPreferences]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!ct.firstSync) {
|
||||
if (!ct.firstSync.read) {
|
||||
processNotifications();
|
||||
}
|
||||
}, [ct.firstSync, processNotifications]);
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user