From 6174b13142100760785698aca2b0a4d94a3901a5 Mon Sep 17 00:00:00 2001 From: Germain Date: Fri, 4 Mar 2022 15:56:28 +0000 Subject: [PATCH] Add thread root to timelime when starting a new thread (#7983) --- 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 f21528cce6..bb993304b2 100644 --- a/src/components/structures/ThreadView.tsx +++ b/src/components/structures/ThreadView.tsx @@ -157,7 +157,7 @@ export default class ThreadView extends React.Component { private setupThread = (mxEv: MatrixEvent) => { let thread = this.props.room.threads?.get(mxEv.getId()); if (!thread) { - thread = this.props.room.createThread(mxEv); + thread = this.props.room.createThread(mxEv, [mxEv]); } thread.on(ThreadEvent.Update, this.updateLastThreadReply); this.updateThread(thread);