You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-05 15:22:09 +03:00
Update lastReply to filter out local event ID from thread fallback (#7620)
This commit is contained in:
@@ -166,7 +166,9 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||
if (thread && this.state.thread !== thread) {
|
||||
this.setState({
|
||||
thread,
|
||||
lastThreadReply: thread.lastReply,
|
||||
lastThreadReply: thread.lastReply((ev: MatrixEvent) => {
|
||||
return !ev.status;
|
||||
}),
|
||||
}, () => {
|
||||
thread.emit(ThreadEvent.ViewThread);
|
||||
this.timelinePanelRef.current?.refreshTimeline();
|
||||
@@ -177,7 +179,9 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||
private updateLastThreadReply = () => {
|
||||
if (this.state.thread) {
|
||||
this.setState({
|
||||
lastThreadReply: this.state.thread.lastReply,
|
||||
lastThreadReply: this.state.thread.lastReply((ev: MatrixEvent) => {
|
||||
return !ev.status;
|
||||
}),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user