fix pagination stop on msg arrive

This commit is contained in:
Ajay Bura 2023-10-30 10:10:04 +05:30
parent d6019f797f
commit dde7263ce8

View file

@ -345,7 +345,6 @@ const useTimelinePagination = (
return async (backwards: boolean) => {
if (fetching) return;
const targetTimeline = timelineRef.current;
const { linkedTimelines: lTimelines } = timelineRef.current;
const timelinesEventsCount = lTimelines.map(timelineToEventsCount);
@ -385,7 +384,6 @@ const useTimelinePagination = (
}
fetching = false;
if (targetTimeline !== timelineRef.current) return;
if (alive()) {
recalibratePagination(lTimelines, timelinesEventsCount, backwards);
}