From 3a82163127ba3ab2fc5f746a87f852041f2655b4 Mon Sep 17 00:00:00 2001 From: Germain Date: Wed, 2 Mar 2022 10:39:22 +0000 Subject: [PATCH] Disable pending events in thread panel event timeline set (#7874) --- src/components/structures/ThreadPanel.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/structures/ThreadPanel.tsx b/src/components/structures/ThreadPanel.tsx index fe0228b13b..37a4122015 100644 --- a/src/components/structures/ThreadPanel.tsx +++ b/src/components/structures/ThreadPanel.tsx @@ -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())