Skip to content

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

Revert "fix(Prejoin): Make prejoin name noneditable only when taken from jwt"

Дамян Минковd8487c25b273
diff --git a/react/features/prejoin/components/Prejoin.js b/react/features/prejoin/components/Prejoin.js
index f1a43a7e94..a395c4aa03 100644
--- a/react/features/prejoin/components/Prejoin.js
+++ b/react/features/prejoin/components/Prejoin.js
@@ -4,6 +4,7 @@ import InlineDialog from '@atlaskit/inline-dialog';
import React, { Component } from 'react';
import { getRoomName } from '../../base/conference';
+import { isNameReadOnly } from '../../base/config';
import { translate } from '../../base/i18n';
import { IconArrowDown, IconArrowUp, IconPhone, IconVolumeOff } from '../../base/icons';
import { isVideoMutedByUser } from '../../base/media';
@@ -20,8 +21,7 @@ import {
isDeviceStatusVisible,
isDisplayNameRequired,
isJoinByPhoneButtonVisible,
- isJoinByPhoneDialogVisible,
- isPrejoinNameReadOnly
+ isJoinByPhoneDialogVisible
} from '../functions';
import DropdownButton from './DropdownButton';
@@ -388,7 +388,7 @@ function mapStateToProps(state): Object {
showDialog: isJoinByPhoneDialogVisible(state),
showErrorOnJoin,
hasJoinByPhoneButton: isJoinByPhoneButtonVisible(state),
- readOnlyName: isPrejoinNameReadOnly(state),
+ readOnlyName: isNameReadOnly(state),
showCameraPreview: !isVideoMutedByUser(state),
videoTrack: getLocalJitsiVideoTrack(state)
};
diff --git a/react/features/prejoin/functions.js b/react/features/prejoin/functions.js
index c165a79d56..6b25fcecac 100644
--- a/react/features/prejoin/functions.js
+++ b/react/features/prejoin/functions.js
@@ -36,16 +36,6 @@ export function isDisplayNameRequired(state: Object): boolean {
|| state['features/base/config'].requireDisplayName;
}
-/**
- * Selector for determining if the display name from prejoin page is read only.
- *
- * @param {Object} state - The state of the app.
- * @returns {boolean}
- */
-export function isPrejoinNameReadOnly(state: Object): boolean {
- return Boolean(state['features/base/jwt']?.user?.name);
-}
-
/**
* Selector for determining if the user has chosen to skip prejoin page.
*