formatting

This commit is contained in:
7w1 committed 2026-05-13 22:10:38 -05:00
1 parent e53c26f934
commit a99244546d
1 file changed
+6 -10
+6 -10
View File
@@ -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 ? (