diff --git a/src/Header.tsx b/src/Header.tsx index 419102b3..69e77935 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -117,7 +117,6 @@ interface RoomHeaderInfoProps { avatarUrl: string | null; encrypted: boolean; participantCount: number | null; - nonMemberItemCount?: number; } export const RoomHeaderInfo: FC = ({ @@ -126,7 +125,6 @@ export const RoomHeaderInfo: FC = ({ avatarUrl, encrypted, participantCount, - nonMemberItemCount, }) => { const { t } = useTranslation(); const size = useMediaQuery("(max-width: 550px)") ? "sm" : "lg"; @@ -159,8 +157,7 @@ export const RoomHeaderInfo: FC = ({ aria-label={t("header_participants_label")} /> - {t("participant_count", { count: participantCount ?? 0 })}{" "} - {(nonMemberItemCount ?? 0) > 0 && <>(+ {nonMemberItemCount})} + {t("participant_count", { count: participantCount ?? 0 })} )} diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 0fc0c5ed..0c3caf9a 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -195,7 +195,6 @@ export const InCallView: FC = ({ } }, [connState, onLeave]); - const nonMemberItemCount = useObservableEagerState(vm.nonMemberItemCount); const containerRef1 = useRef(null); const [containerRef2, bounds] = useMeasure(); // Merge the refs so they can attach to the same element @@ -650,7 +649,6 @@ export const InCallView: FC = ({ avatarUrl={matrixInfo.roomAvatar} encrypted={matrixInfo.e2eeSystem.kind !== E2eeType.NONE} participantCount={participantCount} - nonMemberItemCount={nonMemberItemCount} />