mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-14 03:00:29 +03:00
Fix bug when creating room
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
79afc7649d
commit
8bc41c2c32
2 changed files with 12 additions and 4 deletions
|
|
@ -51,13 +51,10 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) {
|
|||
useEffect(() => {
|
||||
const { roomList } = initMatrix;
|
||||
const onCreated = (roomId) => {
|
||||
setJoinRule(false);
|
||||
setIsEncrypted(true);
|
||||
setIsValidAddress(null);
|
||||
setIsCreatingRoom(false);
|
||||
setCreatingError(null);
|
||||
setIsValidAddress(null);
|
||||
setAddressValue(undefined);
|
||||
setRoleIndex(0);
|
||||
|
||||
if (!mx.getRoom(roomId)?.isSpaceRoom()) {
|
||||
selectRoom(roomId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue