diff --git a/src/Header.tsx b/src/Header.tsx index 89455411..b98fce99 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -22,6 +22,10 @@ import Logo from "./icons/Logo.svg?react"; import { Avatar, Size } from "./Avatar"; import { EncryptionLock } from "./room/EncryptionLock"; import { useMediaQuery } from "./useMediaQuery"; +import { + useExperimentalToDeviceTransportSetting, + useSetting, +} from "./settings/settings"; interface HeaderProps extends HTMLAttributes { children: ReactNode; @@ -133,7 +137,9 @@ export const RoomHeaderInfo: FC = ({ }) => { const { t } = useTranslation(); const size = useMediaQuery("(max-width: 550px)") ? "sm" : "lg"; - + const [toDeviceEncryption] = useSetting( + useExperimentalToDeviceTransportSetting, + ); return (
= ({ {name} + { + // TODO: remove this once we remove the developer flag + // and find a better way to device what key transport to use. + toDeviceEncryption && To Device key transport + }
{(participantCount ?? 0) > 0 && (