Browse Source

feat: Allow AV moderation for p2p users.

master
Дамян Минков 3 years ago
parent
commit
e63b3016c9
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      react/features/participants-pane/functions.js

+ 1
- 2
react/features/participants-pane/functions.js View File

@@ -9,7 +9,6 @@ import { getFeatureFlag, INVITE_ENABLED } from '../base/flags';
9 9
 import { MEDIA_TYPE, type MediaType } from '../base/media/constants';
10 10
 import {
11 11
     getDominantSpeakerParticipant,
12
-    getParticipantCount,
13 12
     isLocalParticipantModerator,
14 13
     isParticipantModerator
15 14
 } from '../base/participants/functions';
@@ -50,7 +49,7 @@ export const findStyledAncestor = (target: Object, component: any) => {
50 49
  * @returns {MediaState}
51 50
  */
52 51
 export function isForceMuted(participant: Object, mediaType: MediaType, state: Object) {
53
-    if (getParticipantCount(state) > 2 && isEnabledFromState(mediaType, state)) {
52
+    if (isEnabledFromState(mediaType, state)) {
54 53
         if (participant.local) {
55 54
             return !isLocalParticipantApprovedFromState(mediaType, state);
56 55
         }

Loading…
Cancel
Save