Remove extra function

that was now doing exactly the same thing as the one above it.
This commit is contained in:
David Baker
2023-10-05 17:25:06 +01:00
parent 4984bd630e
commit b646b0ae56
2 changed files with 2 additions and 13 deletions

View File

@@ -60,14 +60,6 @@ export const useRoomSharedKey = (roomId: string): string | null => {
return useInternalRoomSharedKey(roomId)[0] ?? passwordFormUrl;
};
export const useManageRoomSharedKey = (roomId: string): string | null => {
const urlPassword = useKeyFromUrl(roomId);
const [e2eeSharedKey] = useInternalRoomSharedKey(roomId);
return e2eeSharedKey ?? urlPassword;
};
export const useIsRoomE2EE = (roomId: string): boolean | null => {
const { client } = useClient();
const room = useMemo(() => client?.getRoom(roomId) ?? null, [roomId, client]);