From 0841aca2a4720d9091284eeac74be182a3aa889c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 1 Jun 2022 17:14:43 +0200 Subject: [PATCH] Fix `CallView` crash (#8735) (cherry picked from commit 6574c5c3e2835c6cf25bed58e9e0b62a188dcf72) --- 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 296ebd79ae..b212a2d5ba 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")