Fix edge case behaviour of the space join spinner for guests

pull/21833/head
Michael Telatynski 2021-10-18 16:31:39 +01:00
parent a2bc090607
commit eeec9b16c0
1 changed files with 4 additions and 1 deletions

View File

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