Revert "Refactor useIsRoomE2EE"
This commit is contained in:
@@ -76,7 +76,7 @@ export function GroupCallView({
|
||||
const isJoined = useMatrixRTCSessionJoinState(rtcSession);
|
||||
|
||||
const e2eeSharedKey = useManageRoomSharedKey(rtcSession.room.roomId);
|
||||
const isRoomE2EE = useIsRoomE2EE(rtcSession.room);
|
||||
const isRoomE2EE = useIsRoomE2EE(rtcSession.room.roomId);
|
||||
|
||||
useEffect(() => {
|
||||
window.rtcSession = rtcSession;
|
||||
@@ -88,6 +88,7 @@ export function GroupCallView({
|
||||
const { displayName, avatarUrl } = useProfile(client);
|
||||
const roomName = useRoomName(rtcSession.room);
|
||||
const roomAvatar = useRoomAvatar(rtcSession.room);
|
||||
const roomEncrypted = useIsRoomE2EE(rtcSession.room.roomId)!;
|
||||
|
||||
const matrixInfo = useMemo((): MatrixInfo => {
|
||||
return {
|
||||
@@ -98,7 +99,7 @@ export function GroupCallView({
|
||||
roomName,
|
||||
roomAlias: rtcSession.room.getCanonicalAlias(),
|
||||
roomAvatar,
|
||||
roomEncrypted: isRoomE2EE!,
|
||||
roomEncrypted,
|
||||
};
|
||||
}, [
|
||||
displayName,
|
||||
@@ -106,7 +107,7 @@ export function GroupCallView({
|
||||
rtcSession,
|
||||
roomName,
|
||||
roomAvatar,
|
||||
isRoomE2EE,
|
||||
roomEncrypted,
|
||||
client,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user