mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Add thread root to timelime when starting a new thread (#7983)
This commit is contained in:
@@ -157,7 +157,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
|||||||
private setupThread = (mxEv: MatrixEvent) => {
|
private setupThread = (mxEv: MatrixEvent) => {
|
||||||
let thread = this.props.room.threads?.get(mxEv.getId());
|
let thread = this.props.room.threads?.get(mxEv.getId());
|
||||||
if (!thread) {
|
if (!thread) {
|
||||||
thread = this.props.room.createThread(mxEv);
|
thread = this.props.room.createThread(mxEv, [mxEv]);
|
||||||
}
|
}
|
||||||
thread.on(ThreadEvent.Update, this.updateLastThreadReply);
|
thread.on(ThreadEvent.Update, this.updateLastThreadReply);
|
||||||
this.updateThread(thread);
|
this.updateThread(thread);
|
||||||
|
|||||||
Reference in New Issue
Block a user