mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-04 15:52:24 -08:00
formatting
This commit is contained in:
1 parent
e53c26f934
commit
a99244546d
1 file changed
+6
-10
@@ -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 ? (
|
||||
|
||||
Reference in new issue
Block a user