diff --git a/src/app/pages/call/PersistentCallContainer.tsx b/src/app/pages/call/PersistentCallContainer.tsx index 116a9176..66986f08 100644 --- a/src/app/pages/call/PersistentCallContainer.tsx +++ b/src/app/pages/call/PersistentCallContainer.tsx @@ -21,18 +21,22 @@ import { useClientConfig } from '../../hooks/useClientConfig'; import { RoomView } from '../../features/room/RoomView'; import { useParams } from 'react-router-dom'; import { PowerLevelsContainer } from './PowerLevelsContainer'; +import { ScreenSize, useScreenSizeContext } from '../../hooks/useScreenSize'; interface PersistentCallContainerProps { isVisible: boolean; } export function PersistentCallContainer({ isVisible }: PersistentCallContainerProps) { - const { activeCallRoomId, setActiveCallRoomId, registerActiveTransport } = useCallState(); + const { activeCallRoomId, isChatOpen, setActiveCallRoomId, registerActiveTransport } = + useCallState(); const { eventId } = useParams(); const mx = useMatrixClient(); const roomId = useSelectedRoom(); const clientConfig = useClientConfig(); const room = mx.getRoom(roomId) ?? null; + const screenSize = useScreenSizeContext(); + const isMobile = screenSize === ScreenSize.Mobile; logger.info(room); @@ -167,7 +171,14 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr {activeCallRoomId && roomId && room !== null && ( @@ -176,13 +187,19 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr )} - +