Skip to content

Commit 6174b13

Browse files
author
Germain
authored
Add thread root to timelime when starting a new thread (matrix-org#7983)
1 parent 0e60ad9 commit 6174b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/ThreadView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
157157
private setupThread = (mxEv: MatrixEvent) => {
158158
let thread = this.props.room.threads?.get(mxEv.getId());
159159
if (!thread) {
160-
thread = this.props.room.createThread(mxEv);
160+
thread = this.props.room.createThread(mxEv, [mxEv]);
161161
}
162162
thread.on(ThreadEvent.Update, this.updateLastThreadReply);
163163
this.updateThread(thread);

0 commit comments

Comments
 (0)