From c18c66f4ed38b358c499789e9fbbff5b8d45793e Mon Sep 17 00:00:00 2001 From: Germain Date: Thu, 4 Nov 2021 10:27:43 +0000 Subject: [PATCH] Resolve thread from room Map rather than incorrect ref (#7080) --- src/components/structures/ThreadView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/ThreadView.tsx b/src/components/structures/ThreadView.tsx index d1ce19d689..04c7ff576c 100644 --- a/src/components/structures/ThreadView.tsx +++ b/src/components/structures/ThreadView.tsx @@ -130,7 +130,7 @@ export default class ThreadView extends React.Component { }; private setupThread = (mxEv: MatrixEvent) => { - let thread = mxEv.getThread(); + let thread = this.props.room.threads.get(mxEv.getId()); if (!thread) { const client = MatrixClientPeg.get(); // Do not attach this thread object to the event for now