diff --git a/src/app/features/room/RoomTimeline.tsx b/src/app/features/room/RoomTimeline.tsx index d79d21c6..5e203610 100644 --- a/src/app/features/room/RoomTimeline.tsx +++ b/src/app/features/room/RoomTimeline.tsx @@ -628,7 +628,8 @@ export function RoomTimeline({ : timelineSync.eventsLength; const vListIndices = useMemo( () => Array.from({ length: vListItemCount }, (_, i) => i), - [vListItemCount] + // eslint-disable-next-line react-hooks/exhaustive-deps + [vListItemCount, timelineSync.timeline] ); const processedEvents = useProcessedTimeline({