mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 07:37:46 +00:00
* feat: Initial UI part for A/V moderation. Based on https://github.com/jitsi/jitsi-meet/pull/7779 Co-authored-by: Gabriel Imre <gabriel.lucaci@8x8.com> * feat: Hides context menu in p2p or only moderators in the meeting. * feat: Show notifications on enable/disable. * feat(moderation): Add buttons to participant list & notifications * fix(moderation): Fix raised hand participant leaving * feat(moderation): Add support for video moderation * feat(moderation): Add mute all video to context menu * feat(moderation): Redo participants list 'More menu' * fix: Fixes clearing av_moderation table. * fix: Start moderation context menu * fix(moderation): Show notification if unapproved participant tries to start CS Co-authored-by: Gabriel Imre <gabriel.lucaci@8x8.com> Co-authored-by: Vlad Piersec <vlad.piersec@8x8.com>
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useSelector } from 'react-redux';
|
|
|
|
import NotificationWithParticipants from '../../notifications/components/web/NotificationWithParticipants';
|
|
import { approveAudio, dismissPendingAudioParticipant } from '../actions';
|
|
import { getParticipantsAskingToAudioUnmute } from '../functions';
|
|
|
|
|
|
/**
|
|
* Component used to display a list of participants who asked to be unmuted.
|
|
* This is visible only to moderators.
|
|
*
|
|
* @returns {React$Element<'ul'> | null}
|
|
*/
|
|
export default function() {
|
|
const participants = useSelector(getParticipantsAskingToAudioUnmute);
|
|
const { t } = useTranslation();
|
|
|
|
return participants.length
|
|
? (
|
|
<>
|
|
<div className = 'title'>
|
|
{ t('raisedHand') }
|
|
</div>
|
|
<NotificationWithParticipants
|
|
approveButtonText = { t('notify.unmute') }
|
|
onApprove = { approveAudio }
|
|
onReject = { dismissPendingAudioParticipant }
|
|
participants = { participants }
|
|
rejectButtonText = { t('dialog.dismiss') }
|
|
testIdPrefix = 'avModeration' />
|
|
</>
|
|
) : null;
|
|
}
|