Make e2ee type clearer hopefully

This commit is contained in:
David Baker
2023-10-23 12:10:25 +01:00
parent 9126fb3f3e
commit f04beab99f
3 changed files with 25 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ import { Caption } from "../typography/Typography";
import { Form } from "../form/Form";
import { useOptInAnalytics } from "../settings/useSetting";
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
import { E2eeType } from "../e2ee/e2eeType";
interface Props {
client: MatrixClient;
@@ -72,7 +73,11 @@ export const RegisteredView: FC<Props> = ({ client }) => {
setError(undefined);
setLoading(true);
const createRoomResult = await createRoom(client, roomName, true);
const createRoomResult = await createRoom(
client,
roomName,
E2eeType.SHARED_KEY,
);
history.push(
getRelativeRoomUrl(