mirror of https://github.com/vector-im/riot-web
Refresh ThreadView after React state has been updated (#7539)
parent
de28d82b81
commit
240cb10415
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue