mirror of https://github.com/vector-im/riot-web
Fix edge case behaviour of the space join spinner for guests
parent
a2bc090607
commit
eeec9b16c0
|
@ -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}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue