Skip to content

Commit 910e467

Browse files
SimonBrandnerJanBurp
authored andcommitted
Fix CallView crash (matrix-org#8735)
1 parent a36aa27 commit 910e467

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)