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
Refresh ThreadView after React state has been updated (#7539)
This commit is contained in:
@@ -165,11 +165,11 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||
if (thread && this.state.thread !== thread) {
|
||||
this.setState({
|
||||
thread,
|
||||
}, () => {
|
||||
thread.emit(ThreadEvent.ViewThread);
|
||||
this.timelinePanelRef.current?.refreshTimeline();
|
||||
});
|
||||
thread.emit(ThreadEvent.ViewThread);
|
||||
}
|
||||
|
||||
this.timelinePanelRef.current?.refreshTimeline();
|
||||
};
|
||||
|
||||
private onScroll = (): void => {
|
||||
|
||||
Reference in New Issue
Block a user