fix unread and notification not updating in UI
This commit is contained in:
parent
6f4f9c74b4
commit
72371de4cb
2 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue