Refresh ThreadView after React state has been updated (#7539)

pull/21833/head
Germain 2022-01-14 12:49:25 +00:00 committed by GitHub
parent de28d82b81
commit 240cb10415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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 => {