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

Commit

Permalink
fix thread fallback targeting only thread relations (#8006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain committed Mar 9, 2022
1 parent 782ce01 commit c7dfaa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/structures/ThreadView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
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);
Expand All @@ -201,7 +201,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
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;
}),
});
}
Expand Down

0 comments on commit c7dfaa8

Please sign in to comment.