1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-11-29 21:23:11 +03:00

Fix edge case behaviour of the space join spinner for guests

This commit is contained in:
Michael Telatynski
2021-10-18 16:31:39 +01:00
parent a2bc090607
commit eeec9b16c0

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}
>