Fix private space creation setting an alias anyway
This commit is contained in:
parent
8f6d31b73c
commit
2b9e2e2e85
1 changed files with 3 additions and 1 deletions
|
@ -129,7 +129,9 @@ const SpaceCreateMenu = ({ onFinished }) => {
|
||||||
events_default: 100,
|
events_default: 100,
|
||||||
...Visibility.Public ? { invite: 0 } : {},
|
...Visibility.Public ? { invite: 0 } : {},
|
||||||
},
|
},
|
||||||
room_alias_name: alias ? alias.substr(1, alias.indexOf(":") - 1) : undefined,
|
room_alias_name: visibility === Visibility.Public && alias
|
||||||
|
? alias.substr(1, alias.indexOf(":") - 1)
|
||||||
|
: undefined,
|
||||||
topic,
|
topic,
|
||||||
},
|
},
|
||||||
spinner: false,
|
spinner: false,
|
||||||
|
|
Loading…
Reference in a new issue