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(invite/security): Brave issues fixes (#14180)

Calinteodorbf211fbd4d2a
diff --git a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx
index 9bba9d7797..13eb042cca 100644
--- a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx
+++ b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx
@@ -4,6 +4,7 @@ import { WithTranslation } from 'react-i18next';
import {
ActivityIndicator,
FlatList,
+ SafeAreaView,
TouchableOpacity,
View,
ViewStyle
@@ -199,6 +200,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {
return (
<JitsiScreen
footerComponent = { this._renderShareMeetingButton }
+ hasExtraHeaderHeight = { true }
style = { styles.addPeopleContainer }>
<Input
autoFocus = { false }
@@ -497,7 +499,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {
*/
_renderShareMeetingButton() {
return (
- <View
+ <SafeAreaView
style = { [
styles.bottomBar as ViewStyle,
this.state.bottomPadding ? styles.extraBarPadding : null
@@ -508,7 +510,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {
src = { IconShare }
style = { styles.shareIcon } />
</TouchableOpacity>
- </View>
+ </SafeAreaView>
);
}
diff --git a/react/features/invite/components/add-people-dialog/native/styles.ts b/react/features/invite/components/add-people-dialog/native/styles.ts
index c512bddc0b..3935ebefe8 100644
--- a/react/features/invite/components/add-people-dialog/native/styles.ts
+++ b/react/features/invite/components/add-people-dialog/native/styles.ts
@@ -29,8 +29,7 @@ export default {
bottomBar: {
alignItems: 'center',
justifyContent: 'center',
- backgroundColor: BaseTheme.palette.ui01,
- height: BaseTheme.spacing[10]
+ backgroundColor: BaseTheme.palette.ui01
},
clearButton: {
diff --git a/react/features/security/components/security-dialog/native/SecurityDialog.tsx b/react/features/security/components/security-dialog/native/SecurityDialog.tsx
index 847a146b2c..12073f07a3 100644
--- a/react/features/security/components/security-dialog/native/SecurityDialog.tsx
+++ b/react/features/security/components/security-dialog/native/SecurityDialog.tsx
@@ -56,7 +56,7 @@ interface IProps {
_isModerator: boolean;
/**
- * State of the lobby mode.
+ * Whether lobby mode is enabled or not.
*/
_lobbyEnabled: boolean;
@@ -107,6 +107,11 @@ interface IProps {
*/
interface IState {
+ /**
+ * State of lobby mode.
+ */
+ lobbyEnabled: boolean;
+
/**
* Password added by the participant for room lock.
*/
@@ -134,6 +139,7 @@ class SecurityDialog extends PureComponent<IProps, IState> {
super(props);
this.state = {
+ lobbyEnabled: props._lobbyEnabled,
passwordInputValue: '',
showElement: props._locked === LOCKED_LOCALLY || false
};
@@ -168,7 +174,6 @@ class SecurityDialog extends PureComponent<IProps, IState> {
*/
_renderLobbyMode() {
const {
- _lobbyEnabled,
_lobbyModeSwitchVisible,
t
} = this.props;
@@ -188,7 +193,7 @@ class SecurityDialog extends PureComponent<IProps, IState> {
{ t('lobby.toggleLabel') }
</Text>
<Switch
- checked = { _lobbyEnabled }
+ checked = { this.state.lobbyEnabled }
onChange = { this._onToggleLobbyMode } />
</View>
</View>
@@ -386,13 +391,14 @@ class SecurityDialog extends PureComponent<IProps, IState> {
* @returns {void}
*/
_onToggleLobbyMode() {
- const { _lobbyEnabled, dispatch } = this.props;
+ const { dispatch } = this.props;
+ const { lobbyEnabled } = this.state;
- if (_lobbyEnabled) {
- dispatch(toggleLobbyMode(false));
- } else {
- dispatch(toggleLobbyMode(true));
- }
+ this.setState({
+ lobbyEnabled: !lobbyEnabled
+ });
+
+ dispatch(toggleLobbyMode(!lobbyEnabled));
}
/**