From 76839ec42e7a268bf3f888ab4ce17bc4b5290b36 Mon Sep 17 00:00:00 2001 From: Germain Date: Wed, 5 Jan 2022 15:16:53 +0000 Subject: [PATCH] Prevent soft crash when sending a thread message (#7467) --- src/components/structures/TimelinePanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/TimelinePanel.tsx b/src/components/structures/TimelinePanel.tsx index ff11e0aaa36..30d7231936e 100644 --- a/src/components/structures/TimelinePanel.tsx +++ b/src/components/structures/TimelinePanel.tsx @@ -590,7 +590,7 @@ class TimelinePanel extends React.Component { } this.setState(updatedState, () => { - this.messagePanel.current.updateTimelineMinHeight(); + this.messagePanel.current?.updateTimelineMinHeight(); if (callRMUpdated) { this.props.onReadMarkerUpdated?.(); }