Merge pull request #6972 from matrix-org/t3chguy/fix/19359

pull/21833/head
Michael Telatynski 2021-10-19 08:15:54 +01:00 committed by GitHub
commit 6ea32279a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -275,8 +275,11 @@ const SpacePreview = ({ space, onJoinButtonClicked, onRejectButtonClicked }: ISp
<AccessibleButton
kind="primary"
onClick={() => {
setBusy(true);
onJoinButtonClicked();
if (!cli.isGuest()) {
// user will be shown a modal that won't fire a room join error
setBusy(true);
}
}}
disabled={!spacesEnabled || cannotJoin}
>