Bladeren bron

fix: Fixes reloads after enabling AV moderation.

master
Дамян Минков 3 jaren geleden
bovenliggende
commit
38f9c97f40

+ 6
- 4
react/features/base/participants/middleware.js Bestand weergeven

@@ -284,11 +284,13 @@ StateListenerRegistry.register(
284 284
                     }
285 285
                 });
286 286
         } else {
287
-            const localParticipantId = getLocalParticipant(store.getState).id;
287
+            const localParticipantId = getLocalParticipant(store.getState)?.id;
288 288
 
289
-            // We left the conference, the local participant must be updated.
290
-            _e2eeUpdated(store, conference, localParticipantId, false);
291
-            _raiseHandUpdated(store, conference, localParticipantId, false);
289
+            if (localParticipantId) {
290
+                // We left the conference, the local participant must be updated.
291
+                _e2eeUpdated(store, conference, localParticipantId, false);
292
+                _raiseHandUpdated(store, conference, localParticipantId, false);
293
+            }
292 294
         }
293 295
     }
294 296
 );

+ 2
- 2
react/features/participants-pane/components/web/MeetingParticipantContextMenu.js Bestand weergeven

@@ -326,7 +326,7 @@ class MeetingParticipantContextMenu extends Component<Props, State> {
326 326
                 onMouseEnter = { onEnter }
327 327
                 onMouseLeave = { onLeave }>
328 328
                 {
329
-                    !_participant.isFakeParticipant && (
329
+                    !_participant?.isFakeParticipant && (
330 330
                         <>
331 331
                             <ContextMenuItemGroup>
332 332
                                 {
@@ -393,7 +393,7 @@ class MeetingParticipantContextMenu extends Component<Props, State> {
393 393
                 }
394 394
 
395 395
                 {
396
-                    _participant.isFakeParticipant && _localVideoOwner && (
396
+                    _participant?.isFakeParticipant && _localVideoOwner && (
397 397
                         <ContextMenuItem onClick = { this._onStopSharedVideo }>
398 398
                             <ContextMenuIcon src = { IconShareVideo } />
399 399
                             <span>{t('toolbar.stopSharedVideo')}</span>

+ 2
- 2
react/features/participants-pane/components/web/MeetingParticipantItem.js Bestand weergeven

@@ -150,7 +150,7 @@ function MeetingParticipantItem({
150 150
             videoMuteState = { _isVideoMuted ? MEDIA_STATE.MUTED : MEDIA_STATE.UNMUTED }
151 151
             youText = { youText }>
152 152
             {
153
-                !_participant.isFakeParticipant && (
153
+                !_participant?.isFakeParticipant && (
154 154
                     <>
155 155
                         <ParticipantQuickAction
156 156
                             askUnmuteText = { askUnmuteText }
@@ -165,7 +165,7 @@ function MeetingParticipantItem({
165 165
                 )
166 166
             }
167 167
             {
168
-                _participant.isFakeParticipant && _localVideoOwner && (
168
+                _participant?.isFakeParticipant && _localVideoOwner && (
169 169
                     <ParticipantActionEllipsis
170 170
                         aria-label = { participantActionEllipsisLabel }
171 171
                         onClick = { onContextMenu } />

Laden…
Annuleren
Opslaan