Fix private space creation setting an alias anyway

This commit is contained in:
Michael Telatynski 2021-06-25 10:41:13 +01:00
parent 8f6d31b73c
commit 2b9e2e2e85

View File

@ -129,7 +129,9 @@ const SpaceCreateMenu = ({ onFinished }) => {
events_default: 100,
...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,
},
spinner: false,