Fix edge case behaviour of the space join spinner for guests
This commit is contained in:
parent
a2bc090607
commit
eeec9b16c0
1 changed files with 4 additions and 1 deletions
|
@ -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}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue