fix thread fallback targeting only thread relations (#8006)
This commit is contained in:
parent
782ce016d1
commit
c7dfaa8f64
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||||
this.setState({
|
this.setState({
|
||||||
thread,
|
thread,
|
||||||
lastThreadReply: thread.lastReply((ev: MatrixEvent) => {
|
lastThreadReply: thread.lastReply((ev: MatrixEvent) => {
|
||||||
return ev.isThreadRelation && !ev.status;
|
return ev.isRelation(RelationType.Thread) && !ev.status;
|
||||||
}),
|
}),
|
||||||
}, async () => {
|
}, async () => {
|
||||||
thread.emit(ThreadEvent.ViewThread);
|
thread.emit(ThreadEvent.ViewThread);
|
||||||
|
@ -201,7 +201,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||||
if (this.state.thread) {
|
if (this.state.thread) {
|
||||||
this.setState({
|
this.setState({
|
||||||
lastThreadReply: this.state.thread.lastReply((ev: MatrixEvent) => {
|
lastThreadReply: this.state.thread.lastReply((ev: MatrixEvent) => {
|
||||||
return ev.isThreadRelation && !ev.status;
|
return ev.isRelation(RelationType.Thread) && !ev.status;
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue