1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

don't show "This alias is available to use" if an alias is not provided

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2020-02-29 00:31:56 +00:00
parent 0c4897a875
commit 86a1327259
2 changed files with 9 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ export default class RoomAliasField extends React.PureComponent {
invalid: () => _t("Please provide a room alias"),
}, {
key: "taken",
skip: ({value}) => !value,
test: async ({value}) => {
if (!value) {
return true;