Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Fixes reloads after enabling AV moderation.

Дамян Минков38f9c97f40c6
diff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.js
index 0a465772f5..ac4c8d0436 100644
--- a/react/features/base/participants/middleware.js
+++ b/react/features/base/participants/middleware.js
@@ -284,11 +284,13 @@ StateListenerRegistry.register(
}
});
} else {
- const localParticipantId = getLocalParticipant(store.getState).id;
+ const localParticipantId = getLocalParticipant(store.getState)?.id;
- // We left the conference, the local participant must be updated.
- _e2eeUpdated(store, conference, localParticipantId, false);
- _raiseHandUpdated(store, conference, localParticipantId, false);
+ if (localParticipantId) {
+ // We left the conference, the local participant must be updated.
+ _e2eeUpdated(store, conference, localParticipantId, false);
+ _raiseHandUpdated(store, conference, localParticipantId, false);
+ }
}
}
);
diff --git a/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js b/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
index 4981703f1c..3801b538a7 100644
--- a/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
+++ b/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
@@ -326,7 +326,7 @@ class MeetingParticipantContextMenu extends Component<Props, State> {
onMouseEnter = { onEnter }
onMouseLeave = { onLeave }>
{
- !_participant.isFakeParticipant && (
+ !_participant?.isFakeParticipant && (
<>
<ContextMenuItemGroup>
{
@@ -393,7 +393,7 @@ class MeetingParticipantContextMenu extends Component<Props, State> {
}
{
- _participant.isFakeParticipant && _localVideoOwner && (
+ _participant?.isFakeParticipant && _localVideoOwner && (
<ContextMenuItem onClick = { this._onStopSharedVideo }>
<ContextMenuIcon src = { IconShareVideo } />
<span>{t('toolbar.stopSharedVideo')}</span>
diff --git a/react/features/participants-pane/components/web/MeetingParticipantItem.js b/react/features/participants-pane/components/web/MeetingParticipantItem.js
index bf32226f8f..5c3b134e86 100644
--- a/react/features/participants-pane/components/web/MeetingParticipantItem.js
+++ b/react/features/participants-pane/components/web/MeetingParticipantItem.js
@@ -150,7 +150,7 @@ function MeetingParticipantItem({
videoMuteState = { _isVideoMuted ? MEDIA_STATE.MUTED : MEDIA_STATE.UNMUTED }
youText = { youText }>
{
- !_participant.isFakeParticipant && (
+ !_participant?.isFakeParticipant && (
<>
<ParticipantQuickAction
askUnmuteText = { askUnmuteText }
@@ -165,7 +165,7 @@ function MeetingParticipantItem({
)
}
{
- _participant.isFakeParticipant && _localVideoOwner && (
+ _participant?.isFakeParticipant && _localVideoOwner && (
<ParticipantActionEllipsis
aria-label = { participantActionEllipsisLabel }
onClick = { onContextMenu } />