mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-05-29 07:41:18 +03: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({
|
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…
x
Reference in New Issue
Block a user