Fix CallView crash (#8735)

This commit is contained in:
Šimon Brandner 2022-06-01 17:14:43 +02:00 committed by GitHub
parent 23cc1aff73
commit 6574c5c3e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -418,7 +418,8 @@ export default class CallView extends React.Component<IProps, IState> {
const isScreensharing = call.isScreensharing(); const isScreensharing = call.isScreensharing();
const { primaryFeed, sidebarShown } = this.state; const { primaryFeed, sidebarShown } = this.state;
const sharerName = primaryFeed.getMember().name; const sharerName = primaryFeed?.getMember().name;
if (!sharerName) return;
let text = isScreensharing let text = isScreensharing
? _t("You are presenting") ? _t("You are presenting")