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