Skip to content

Commit a37c9bc

Browse files
committed
update read indicator better or something
1 parent d3a3b9d commit a37c9bc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/app/features/room/RoomTimeline.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,12 @@ export function RoomTimeline({
529529
useEffect(() => {
530530
if (atBottomState && document.hasFocus() && timelineSync.liveTimelineLinked)
531531
tryAutoMarkAsRead();
532-
}, [atBottomState, timelineSync.liveTimelineLinked, tryAutoMarkAsRead]);
532+
}, [
533+
atBottomState,
534+
timelineSync.liveTimelineLinked,
535+
tryAutoMarkAsRead,
536+
timelineSync.eventsLength,
537+
]);
533538

534539
const handleVListScroll = useCallback(
535540
(offset: number) => {

0 commit comments

Comments
 (0)