mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
fix thread fallback targeting only thread relations (#8006)
This commit is contained in:
parent
782ce016d1
commit
c7dfaa8f64
@ -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);
|
||||
@ -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;
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user