Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Refresh ThreadView after React state has been updated (#7539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain authored Jan 14, 2022
1 parent de28d82 commit 240cb10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/structures/ThreadView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 240cb10

Please sign in to comment.