feat(native-participants-pane) updated translations and added throttle for slider
This commit is contained in:
parent
53d0a892b5
commit
415562c315
|
@ -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",
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
];
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue