Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix list of members in space preview #7356

Merged
merged 2 commits into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/structures/SpaceRoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ const useMyRoomMembership = (room: Room) => {
};

const SpaceInfo = ({ space }: { space: Room }) => {
// summary will begin as undefined whilst loading and go null if it fails to load.
// summary will begin as undefined whilst loading and go null if it fails to load or we are not invited.
const summary = useAsyncMemo(async () => {
if (space.getMyMembership() !== "invite") return;
if (space.getMyMembership() !== "invite") return null;
try {
return space.client.getRoomSummary(space.roomId);
} catch (e) {
Expand All @@ -141,7 +141,7 @@ const SpaceInfo = ({ space }: { space: Room }) => {
const membership = useMyRoomMembership(space);

let visibilitySection;
if (joinRule === "public") {
if (joinRule === JoinRule.Public) {
visibilitySection = <span className="mx_SpaceRoomView_info_public">
{ _t("Public space") }
</span>;
Expand Down