From 3aa82e28d20da16947b36897372acfa6e15fb3db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 1 Jun 2022 16:42:17 +0200 Subject: [PATCH] Fix `CallView` crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 296ebd79ae5..b212a2d5ba8 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -418,7 +418,8 @@ export default class CallView extends React.Component { const isScreensharing = call.isScreensharing(); const { primaryFeed, sidebarShown } = this.state; - const sharerName = primaryFeed.getMember().name; + const sharerName = primaryFeed?.getMember().name; + if (!sharerName) return; let text = isScreensharing ? _t("You are presenting")