From eeec9b16c0d3a26fccb3d7c761fcf756cf03ba9c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 18 Oct 2021 16:31:39 +0100 Subject: [PATCH] Fix edge case behaviour of the space join spinner for guests --- src/components/structures/SpaceRoomView.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/structures/SpaceRoomView.tsx b/src/components/structures/SpaceRoomView.tsx index 423bcdd305..2a7bda9e81 100644 --- a/src/components/structures/SpaceRoomView.tsx +++ b/src/components/structures/SpaceRoomView.tsx @@ -275,8 +275,11 @@ const SpacePreview = ({ space, onJoinButtonClicked, onRejectButtonClicked }: ISp { - 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} >