fix(prejoin) Remove no longer needed hack

This commit is contained in:
Robert Pintilii 2022-09-19 15:57:57 +03:00 committed by GitHub
parent 6dd04136de
commit e05ad18ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 16 deletions

View File

@ -3,10 +3,8 @@
import InlineDialog from '@atlaskit/inline-dialog'; import InlineDialog from '@atlaskit/inline-dialog';
import React, { Component } from 'react'; import React, { Component } from 'react';
import { LoginDialog, WaitForOwnerDialog } from '../../authentication/components';
import { Avatar } from '../../base/avatar'; import { Avatar } from '../../base/avatar';
import { isNameReadOnly } from '../../base/config'; import { isNameReadOnly } from '../../base/config';
import { isDialogOpen } from '../../base/dialog/functions';
import { translate } from '../../base/i18n'; import { translate } from '../../base/i18n';
import { IconArrowDown, IconArrowUp, IconPhone, IconVolumeOff } from '../../base/icons'; import { IconArrowDown, IconArrowUp, IconPhone, IconVolumeOff } from '../../base/icons';
import { isVideoMutedByUser } from '../../base/media'; import { isVideoMutedByUser } from '../../base/media';
@ -15,8 +13,6 @@ import { ActionButton, InputField, PreMeetingScreen } from '../../base/premeetin
import { connect } from '../../base/redux'; import { connect } from '../../base/redux';
import { getDisplayName, updateSettings } from '../../base/settings'; import { getDisplayName, updateSettings } from '../../base/settings';
import { getLocalJitsiVideoTrack } from '../../base/tracks'; import { getLocalJitsiVideoTrack } from '../../base/tracks';
import { getIsLobbyVisible } from '../../lobby/functions';
import { PasswordRequiredPrompt } from '../../room-lock/components';
import { import {
joinConference as joinConferenceAction, joinConference as joinConferenceAction,
joinConferenceWithoutAudio as joinConferenceWithoutAudioAction, joinConferenceWithoutAudio as joinConferenceWithoutAudioAction,
@ -50,11 +46,6 @@ type Props = {
*/ */
hasJoinByPhoneButton: boolean, hasJoinByPhoneButton: boolean,
/**
* Whether authentication is taking place or not.
*/
isAuthInProgress: boolean,
/** /**
* Joins the current meeting. * Joins the current meeting.
*/ */
@ -345,7 +336,6 @@ class Prejoin extends Component<Props, State> {
const { const {
deviceStatusVisible, deviceStatusVisible,
hasJoinByPhoneButton, hasJoinByPhoneButton,
isAuthInProgress,
joinConference, joinConference,
joinConferenceWithoutAudio, joinConferenceWithoutAudio,
name, name,
@ -382,7 +372,7 @@ class Prejoin extends Component<Props, State> {
data-testid = 'prejoin.screen'> data-testid = 'prejoin.screen'>
{this.showDisplayNameField ? (<InputField {this.showDisplayNameField ? (<InputField
autoComplete = { 'name' } autoComplete = { 'name' }
autoFocus = { !isAuthInProgress } autoFocus = { true }
className = { showError ? 'error' : '' } className = { showError ? 'error' : '' }
hasError = { showError } hasError = { showError }
onChange = { _setName } onChange = { _setName }
@ -454,16 +444,11 @@ function mapStateToProps(state): Object {
const name = getDisplayName(state); const name = getDisplayName(state);
const showErrorOnJoin = isDisplayNameRequired(state) && !name; const showErrorOnJoin = isDisplayNameRequired(state) && !name;
const { id: participantId } = getLocalParticipant(state); const { id: participantId } = getLocalParticipant(state);
const isLobbyVisible = getIsLobbyVisible(state);
const isAuthInProgress = isDialogOpen(state, WaitForOwnerDialog)
|| isDialogOpen(state, LoginDialog) || isDialogOpen(state, PasswordRequiredPrompt)
|| isLobbyVisible;
return { return {
canEditDisplayName: isPrejoinDisplayNameVisible(state), canEditDisplayName: isPrejoinDisplayNameVisible(state),
deviceStatusVisible: isDeviceStatusVisible(state), deviceStatusVisible: isDeviceStatusVisible(state),
hasJoinByPhoneButton: isJoinByPhoneButtonVisible(state), hasJoinByPhoneButton: isJoinByPhoneButtonVisible(state),
isAuthInProgress,
name, name,
participantId, participantId,
prejoinConfig: state['features/base/config'].prejoinConfig, prejoinConfig: state['features/base/config'].prejoinConfig,