Disable pending events in thread panel event timeline set (#7874)

This commit is contained in:
Germain 2022-03-02 10:39:22 +00:00 committed by GitHub
parent 2d58704d26
commit 3a82163127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,9 @@ export async function getThreadTimelineSet(
// Filter creation fails if HomeServer does not support the new relation
// filter fields. We fallback to the threads that have been discovered in
// the main timeline
const timelineSet = new EventTimelineSet(room, {});
const timelineSet = new EventTimelineSet(room, {
pendingEvents: false,
});
Array.from(room.threads)
.sort(([, threadA], [, threadB]) => threadA.replyToEvent.getTs() - threadB.replyToEvent.getTs())