You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-10 05:42:29 +03:00
Fix edge case behaviour of the space join spinner for guests
This commit is contained in:
@@ -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}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user