diff --git a/src/app/features/room/RoomTimeline.tsx b/src/app/features/room/RoomTimeline.tsx index e1d7fb504..6eca94eaf 100644 --- a/src/app/features/room/RoomTimeline.tsx +++ b/src/app/features/room/RoomTimeline.tsx @@ -411,7 +411,7 @@ export function RoomTimeline({ useEffect(() => { if (!eventId) return; setIsReady(false); - timelineSyncRef.current.loadEventTimeline(eventId); + void timelineSyncRef.current.loadEventTimeline(eventId); }, [eventId, room.roomId]); useEffect(() => { @@ -506,7 +506,7 @@ export function RoomTimeline({ } timelineSync.setFocusItem({ index: absoluteIndex, scrollTo: false, highlight: true }); } else { - timelineSync.loadEventTimeline(id); + void timelineSync.loadEventTimeline(id); } }, }); @@ -646,14 +646,14 @@ export function RoomTimeline({ } if (offset < 500 && canPaginateBackRef.current && backwardStatusRef.current === 'idle') { - timelineSyncRef.current.handleTimelinePagination(true); + void timelineSyncRef.current.handleTimelinePagination(true); } if ( distanceFromBottom < 500 && !liveTimelineLinkedRef.current && forwardStatusRef.current === 'idle' ) { - timelineSyncRef.current.handleTimelinePagination(false); + void timelineSyncRef.current.handleTimelinePagination(false); } }, [setAtBottom] @@ -791,7 +791,7 @@ export function RoomTimeline({ backwardStatusRef.current === 'idle' && v.scrollSize <= v.viewportSize ) { - timelineSyncRef.current.handleTimelinePagination(true); + void timelineSyncRef.current.handleTimelinePagination(true); } }, [timelineSync.eventsLength, timelineSync.backwardStatus]); @@ -821,7 +821,7 @@ export function RoomTimeline({ const hasRealScrollRoom = v.scrollSize > v.viewportSize + 300; if (!hasRealScrollRoom || (atTop && noVisibleGrowth)) { - timelineSyncRef.current.handleTimelinePagination(true); + void timelineSyncRef.current.handleTimelinePagination(true); } }; @@ -921,10 +921,6 @@ export function RoomTimeline({ eventData.collapsed ); - // Suppress dividers when the underlying event will not render. - // Otherwise rooms whose only events on a given day are hidden - // (e.g. announcement channels full of profile changes / joins) - // show a bare day divider with no message under it (#701). const showDividers = renderedEvent !== null; const dividers = showDividers ? (