Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0841aca

Browse files
SimonBrandnert3chguy
authored andcommitted
Fix CallView crash (#8735)
(cherry picked from commit 6574c5c)
1 parent cacdb69 commit 0841aca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/voip/CallView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ export default class CallView extends React.Component<IProps, IState> {
418418

419419
const isScreensharing = call.isScreensharing();
420420
const { primaryFeed, sidebarShown } = this.state;
421-
const sharerName = primaryFeed.getMember().name;
421+
const sharerName = primaryFeed?.getMember().name;
422+
if (!sharerName) return;
422423

423424
let text = isScreensharing
424425
? _t("You are presenting")

0 commit comments

Comments
 (0)