Add thread root to timelime when starting a new thread (#7983)

pull/21833/head
Germain 2022-03-04 15:56:28 +00:00 committed by GitHub
parent 0e60ad98c1
commit 6174b13142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
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);