diff --git a/src/app/organisms/create-room/CreateRoom.jsx b/src/app/organisms/create-room/CreateRoom.jsx index 494c67aa8..04b2faebe 100644 --- a/src/app/organisms/create-room/CreateRoom.jsx +++ b/src/app/organisms/create-room/CreateRoom.jsx @@ -43,7 +43,7 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) { const [isValidAddress, setIsValidAddress] = useState(null); const [addressValue, setAddressValue] = useState(undefined); const [roleIndex, setRoleIndex] = useState(0); - const [nameError, setNameError] = useState(null); + const addressRef = useRef(null); const mx = useMatrixClient(); @@ -121,15 +121,6 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) { }, 1000); }; - const validateRoomName =(value) =>{ - if(value.length > 50){ - setNameError('Room name should be less than 50 characters'); - return false; - } - setNameError(null); - return true; - } - const joinRules = ['invite', 'restricted', 'public']; const joinRuleShortText = ['Private', 'Restricted', 'Public']; const joinRuleText = [ @@ -228,26 +219,17 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) { } /> -