diff --git a/src/components/structures/ThreadView.tsx b/src/components/structures/ThreadView.tsx index bb993304b2..42283bf51e 100644 --- a/src/components/structures/ThreadView.tsx +++ b/src/components/structures/ThreadView.tsx @@ -181,7 +181,7 @@ export default class ThreadView extends React.Component { this.setState({ thread, lastThreadReply: thread.lastReply((ev: MatrixEvent) => { - return ev.isThreadRelation && !ev.status; + return ev.isRelation(RelationType.Thread) && !ev.status; }), }, async () => { thread.emit(ThreadEvent.ViewThread); @@ -201,7 +201,7 @@ export default class ThreadView extends React.Component { if (this.state.thread) { this.setState({ lastThreadReply: this.state.thread.lastReply((ev: MatrixEvent) => { - return ev.isThreadRelation && !ev.status; + return ev.isRelation(RelationType.Thread) && !ev.status; }), }); }