Browse Source

fix: Fixes reloads after enabling AV moderation.

master
Дамян Минков 3 years ago
parent
commit
38f9c97f40

+ 6
- 4
react/features/base/participants/middleware.js View File

284
                     }
284
                     }
285
                 });
285
                 });
286
         } else {
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 View File

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

+ 2
- 2
react/features/participants-pane/components/web/MeetingParticipantItem.js View File

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

Loading…
Cancel
Save