Remove more remnants of show-non-member-tiles

This commit is contained in:
Hugh Nimmo-Smith
2024-11-14 07:25:52 +00:00
parent b3e725fcac
commit 87c3793f69
2 changed files with 1 additions and 6 deletions
+1 -4
View File
@@ -117,7 +117,6 @@ interface RoomHeaderInfoProps {
avatarUrl: string | null;
encrypted: boolean;
participantCount: number | null;
nonMemberItemCount?: number;
}
export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
@@ -126,7 +125,6 @@ export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
avatarUrl,
encrypted,
participantCount,
nonMemberItemCount,
}) => {
const { t } = useTranslation();
const size = useMediaQuery("(max-width: 550px)") ? "sm" : "lg";
@@ -159,8 +157,7 @@ export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
aria-label={t("header_participants_label")}
/>
<Text as="span" size="sm" weight="medium">
{t("participant_count", { count: participantCount ?? 0 })}{" "}
{(nonMemberItemCount ?? 0) > 0 && <>(+ {nonMemberItemCount})</>}
{t("participant_count", { count: participantCount ?? 0 })}
</Text>
</div>
)}