Fix `CallView` crash (#8735)

(cherry picked from commit 6574c5c3e2)
pull/28788/head^2
Šimon Brandner 2022-06-01 17:14:43 +02:00 committed by Michael Telatynski
parent cacdb69774
commit 0841aca2a4
No known key found for this signature in database
GPG Key ID: 98BC6A2B829297FE
1 changed files with 2 additions and 1 deletions

View File

@ -418,7 +418,8 @@ export default class CallView extends React.Component<IProps, IState> {
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")