Ignore unseen when older

This commit is contained in:
clovis 2023-08-12 14:40:11 +02:00
parent 64cd64d09e
commit ad72508ec5
1 changed files with 4 additions and 1 deletions

View File

@ -111,7 +111,10 @@ const expandNormalizedTimeline = (state: State, timelineId: string, statuses: Im
// we need to sort between queue and actual list to avoid
// messing with user position in the timeline by inserting inseen statuses
unseens = ImmutableOrderedSet<any>();
if (!isLoadingMore && timeline.items.count() > 0) {
if (!isLoadingMore
&& timeline.items.count() > 0
&& newIds.first() > timeline.items.first()
) {
unseens = newIds.subtract(timeline.items);
}