Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(native-participants-pane) updated translations and added throttle for slider

Calin Chitu415562c31568
diff --git a/lang/main.json b/lang/main.json
index 00b44bf1eb..d3f2c46fe0 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -598,12 +598,14 @@
},
"actions": {
"allow": "Allow attendees to:",
+ "blockEveryoneMicCamera": "Block everyone's mic and camera",
"invite": "Invite Someone",
"askUnmute": "Ask to unmute",
"muteAll": "Mute all",
"startModeration": "Unmute themselves or start video",
"stopEveryonesVideo": "Stop everyone's video",
- "stopVideo": "Stop video"
+ "stopVideo": "Stop video",
+ "unblockEveryoneMicCamera": "Unblock everyone's mic and camera"
}
},
"passwordSetRemotely": "Set by another participant",
diff --git a/react/features/participants-pane/components/native/ContextMenuMore.js b/react/features/participants-pane/components/native/ContextMenuMore.js
index 69096cdde6..84ae349619 100644
--- a/react/features/participants-pane/components/native/ContextMenuMore.js
+++ b/react/features/participants-pane/components/native/ContextMenuMore.js
@@ -49,7 +49,9 @@ export const ContextMenuMore = () => {
size = { 20 }
src = { IconMicDisabledHollow }
style = { styles.contextMenuIcon } />
- <Text style = { styles.contextMenuItemText }>{t('participantsPane.actions.blockAudioVideo')}</Text>
+ <Text style = { styles.contextMenuItemText }>
+ {t('participantsPane.actions.blockEveryoneMicCamera')}
+ </Text>
</TouchableOpacity>
</BottomSheet>
);
diff --git a/react/features/participants-pane/components/native/participants.js b/react/features/participants-pane/components/native/participants.js
deleted file mode 100644
index 2e21ec7872..0000000000
--- a/react/features/participants-pane/components/native/participants.js
+++ /dev/null
@@ -1,102 +0,0 @@
-export const participants = [
- {
- audioOutputDeviceId: 'default',
- avatarURL: undefined,
- botType: undefined,
- conference: undefined,
- connectionStatus: undefined,
- dominantSpeaker: false,
- email: undefined,
- id: 'd0816677',
- isFakeParticipant: undefined,
- isJigasi: undefined,
- loadableAvatarUrl: undefined,
- local: true,
- name: 'testuser2',
- pinned: false,
- presence: undefined,
- role: 'moderator',
- startWithAudioMuted: true,
- startWithVideoMuted: true
- },
- {
- audioOutputDeviceId: 'default',
- avatarURL: undefined,
- botType: undefined,
- conference: undefined,
- connectionStatus: undefined,
- dominantSpeaker: false,
- email: undefined,
- id: 'a0496597',
- isFakeParticipant: undefined,
- isJigasi: undefined,
- loadableAvatarUrl: undefined,
- local: true,
- name: 'me',
- pinned: false,
- presence: undefined,
- role: 'participant',
- startWithAudioMuted: true,
- startWithVideoMuted: false
- },
- {
- audioOutputDeviceId: 'default',
- avatarURL: undefined,
- botType: undefined,
- conference: undefined,
- connectionStatus: undefined,
- dominantSpeaker: false,
- email: undefined,
- id: 'b01081018',
- isFakeParticipant: undefined,
- isJigasi: undefined,
- loadableAvatarUrl: undefined,
- local: true,
- name: 'Tom',
- pinned: false,
- presence: undefined,
- role: 'participant',
- startWithAudioMuted: true,
- startWithVideoMuted: false
- },
- {
- audioOutputDeviceId: 'default',
- avatarURL: undefined,
- botType: undefined,
- conference: undefined,
- connectionStatus: undefined,
- dominantSpeaker: false,
- email: undefined,
- id: 'b0aad221e1',
- isFakeParticipant: undefined,
- isJigasi: undefined,
- loadableAvatarUrl: undefined,
- local: true,
- name: 'George',
- pinned: false,
- presence: undefined,
- role: 'participant',
- startWithAudioMuted: true,
- startWithVideoMuted: false
- },
- {
- audioOutputDeviceId: 'default',
- avatarURL: undefined,
- botType: undefined,
- conference: undefined,
- connectionStatus: undefined,
- dominantSpeaker: false,
- email: undefined,
- id: 'c0108301',
- isFakeParticipant: undefined,
- isJigasi: undefined,
- loadableAvatarUrl: undefined,
- local: true,
- name: 'Carlin',
- pinned: false,
- presence: undefined,
- role: 'participant',
- startWithAudioMuted: true,
- startWithVideoMuted: false
- }
-];
diff --git a/react/features/video-menu/components/AbstractBlockAudioVideoDialog.js b/react/features/video-menu/components/AbstractBlockAudioVideoDialog.js
index 994f98acb0..1823c458d0 100644
--- a/react/features/video-menu/components/AbstractBlockAudioVideoDialog.js
+++ b/react/features/video-menu/components/AbstractBlockAudioVideoDialog.js
@@ -42,9 +42,6 @@ export default class AbstractBlockAudioVideoDialog
* @returns {boolean} - True (to note that the modal should be closed).
*/
_onSubmit() {
- const { dispatch } = this.props;
-
- dispatch(blockParticipantsAudioVideo());
return true;
}
diff --git a/react/features/video-menu/components/native/VolumeSlider.js b/react/features/video-menu/components/native/VolumeSlider.js
index 46e83dfdd7..5a3f7f7b68 100644
--- a/react/features/video-menu/components/native/VolumeSlider.js
+++ b/react/features/video-menu/components/native/VolumeSlider.js
@@ -2,7 +2,7 @@
import Slider from '@react-native-community/slider';
import _ from 'lodash';
-import React, { Component } from 'react';
+import React, { PureComponent } from 'react';
import { View } from 'react-native';
import { withTheme } from 'react-native-paper';
@@ -44,7 +44,7 @@ type State = {
*
* @returns {React$Element<any>}
*/
-class VolumeSlider extends Component<Props, State> {
+class VolumeSlider extends PureComponent<Props, State> {
_onVolumeChange: Function;
_originalVolumeChange: Function;