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

@@ -43,6 +43,7 @@ import { generateRandomName } from "../auth/generateRandomName";
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
import { useOptInAnalytics } from "../settings/useSetting";
import { Config } from "../config/Config";
import { E2eeType } from "../e2ee/e2eeType";
export const UnauthenticatedView: FC = () => {
const { setClient } = useClient();
@@ -84,7 +85,11 @@ export const UnauthenticatedView: FC = () => {
let createRoomResult;
try {
createRoomResult = await createRoom(client, roomName, true);
createRoomResult = await createRoom(
client,
roomName,
E2eeType.SHARED_KEY,
);
} catch (error) {
if (!setClient) {
throw error;