Prevent soft crash when sending a thread message (#7467)

This commit is contained in:
Germain 2022-01-05 15:16:53 +00:00 committed by GitHub
parent 325e2ba99b
commit 76839ec42e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -590,7 +590,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
}
this.setState<null>(updatedState, () => {
this.messagePanel.current.updateTimelineMinHeight();
this.messagePanel.current?.updateTimelineMinHeight();
if (callRMUpdated) {
this.props.onReadMarkerUpdated?.();
}