|
@@ -2,6 +2,7 @@
|
2
|
2
|
|
3
|
3
|
import React, { useCallback, useEffect, useState } from 'react';
|
4
|
4
|
|
|
5
|
+import { translate } from '../../../base/i18n';
|
5
|
6
|
import { JitsiTrackEvents } from '../../../base/lib-jitsi-meet';
|
6
|
7
|
import { MEDIA_TYPE } from '../../../base/media';
|
7
|
8
|
import {
|
|
@@ -135,6 +136,11 @@ type Props = {
|
135
|
136
|
*/
|
136
|
137
|
participantID: ?string,
|
137
|
138
|
|
|
139
|
+ /**
|
|
140
|
+ * The translate function.
|
|
141
|
+ */
|
|
142
|
+ t: Function,
|
|
143
|
+
|
138
|
144
|
/**
|
139
|
145
|
* The translated "you" text.
|
140
|
146
|
*/
|
|
@@ -167,6 +173,7 @@ function MeetingParticipantItem({
|
167
|
173
|
openDrawerForParticipant,
|
168
|
174
|
overflowDrawer,
|
169
|
175
|
participantActionEllipsisLabel,
|
|
176
|
+ t,
|
170
|
177
|
youText
|
171
|
178
|
}: Props) {
|
172
|
179
|
|
|
@@ -202,6 +209,12 @@ function MeetingParticipantItem({
|
202
|
209
|
const audioMediaState = _audioMediaState === MEDIA_STATE.UNMUTED && hasAudioLevels
|
203
|
210
|
? MEDIA_STATE.DOMINANT_SPEAKER : _audioMediaState;
|
204
|
211
|
|
|
212
|
+ let askToUnmuteText = askUnmuteText;
|
|
213
|
+
|
|
214
|
+ if (_audioMediaState !== MEDIA_STATE.FORCE_MUTED && _videoMediaState === MEDIA_STATE.FORCE_MUTED) {
|
|
215
|
+ askToUnmuteText = t('participantsPane.actions.allowVideo');
|
|
216
|
+ }
|
|
217
|
+
|
205
|
218
|
return (
|
206
|
219
|
<ParticipantItem
|
207
|
220
|
actionsTrigger = { ACTION_TRIGGER.HOVER }
|
|
@@ -221,7 +234,7 @@ function MeetingParticipantItem({
|
221
|
234
|
{!overflowDrawer && !_participant?.isFakeParticipant
|
222
|
235
|
&& <>
|
223
|
236
|
<ParticipantQuickAction
|
224
|
|
- askUnmuteText = { askUnmuteText }
|
|
237
|
+ askUnmuteText = { askToUnmuteText }
|
225
|
238
|
buttonType = { _quickActionButtonType }
|
226
|
239
|
muteAudio = { muteAudio }
|
227
|
240
|
muteParticipantButtonText = { muteParticipantButtonText }
|
|
@@ -280,4 +293,4 @@ function _mapStateToProps(state, ownProps): Object {
|
280
|
293
|
};
|
281
|
294
|
}
|
282
|
295
|
|
283
|
|
-export default connect(_mapStateToProps)(MeetingParticipantItem);
|
|
296
|
+export default translate(connect(_mapStateToProps)(MeetingParticipantItem));
|