Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit c7dfaa8

Browse files
author
Germain
authored
fix thread fallback targeting only thread relations (#8006)
1 parent 782ce01 commit c7dfaa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/ThreadView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
181181
this.setState({
182182
thread,
183183
lastThreadReply: thread.lastReply((ev: MatrixEvent) => {
184-
return ev.isThreadRelation && !ev.status;
184+
return ev.isRelation(RelationType.Thread) && !ev.status;
185185
}),
186186
}, async () => {
187187
thread.emit(ThreadEvent.ViewThread);
@@ -201,7 +201,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
201201
if (this.state.thread) {
202202
this.setState({
203203
lastThreadReply: this.state.thread.lastReply((ev: MatrixEvent) => {
204-
return ev.isThreadRelation && !ev.status;
204+
return ev.isRelation(RelationType.Thread) && !ev.status;
205205
}),
206206
});
207207
}

0 commit comments

Comments
 (0)