mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
Remove more remnants of show-non-member-tiles
This commit is contained in:
@@ -117,7 +117,6 @@ interface RoomHeaderInfoProps {
|
|||||||
avatarUrl: string | null;
|
avatarUrl: string | null;
|
||||||
encrypted: boolean;
|
encrypted: boolean;
|
||||||
participantCount: number | null;
|
participantCount: number | null;
|
||||||
nonMemberItemCount?: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
|
export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
|
||||||
@@ -126,7 +125,6 @@ export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
|
|||||||
avatarUrl,
|
avatarUrl,
|
||||||
encrypted,
|
encrypted,
|
||||||
participantCount,
|
participantCount,
|
||||||
nonMemberItemCount,
|
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const size = useMediaQuery("(max-width: 550px)") ? "sm" : "lg";
|
const size = useMediaQuery("(max-width: 550px)") ? "sm" : "lg";
|
||||||
@@ -159,8 +157,7 @@ export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
|
|||||||
aria-label={t("header_participants_label")}
|
aria-label={t("header_participants_label")}
|
||||||
/>
|
/>
|
||||||
<Text as="span" size="sm" weight="medium">
|
<Text as="span" size="sm" weight="medium">
|
||||||
{t("participant_count", { count: participantCount ?? 0 })}{" "}
|
{t("participant_count", { count: participantCount ?? 0 })}
|
||||||
{(nonMemberItemCount ?? 0) > 0 && <>(+ {nonMemberItemCount})</>}
|
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -195,7 +195,6 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
}
|
}
|
||||||
}, [connState, onLeave]);
|
}, [connState, onLeave]);
|
||||||
|
|
||||||
const nonMemberItemCount = useObservableEagerState(vm.nonMemberItemCount);
|
|
||||||
const containerRef1 = useRef<HTMLDivElement | null>(null);
|
const containerRef1 = useRef<HTMLDivElement | null>(null);
|
||||||
const [containerRef2, bounds] = useMeasure();
|
const [containerRef2, bounds] = useMeasure();
|
||||||
// Merge the refs so they can attach to the same element
|
// Merge the refs so they can attach to the same element
|
||||||
@@ -650,7 +649,6 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
avatarUrl={matrixInfo.roomAvatar}
|
avatarUrl={matrixInfo.roomAvatar}
|
||||||
encrypted={matrixInfo.e2eeSystem.kind !== E2eeType.NONE}
|
encrypted={matrixInfo.e2eeSystem.kind !== E2eeType.NONE}
|
||||||
participantCount={participantCount}
|
participantCount={participantCount}
|
||||||
nonMemberItemCount={nonMemberItemCount}
|
|
||||||
/>
|
/>
|
||||||
</LeftNav>
|
</LeftNav>
|
||||||
<RightNav>
|
<RightNav>
|
||||||
|
|||||||
Reference in New Issue
Block a user