From 1629341c084401b7b53ea6eaa2e4cbc06aaa15dc Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Wed, 16 Apr 2025 20:53:10 -0500 Subject: [PATCH] update to provide client context for the widget url's element call endpoint if provided --- src/app/pages/call/PersistentCallContainer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/pages/call/PersistentCallContainer.tsx b/src/app/pages/call/PersistentCallContainer.tsx index 7c4b5354..e750801b 100644 --- a/src/app/pages/call/PersistentCallContainer.tsx +++ b/src/app/pages/call/PersistentCallContainer.tsx @@ -17,6 +17,7 @@ import { MobileFriendlyPageNav } from '../MobileFriendly'; import { SPACE_PATH } from '../paths'; import { PowerLevelsContextProvider } from '../../hooks/usePowerLevels'; import { useSelectedRoom } from '../../hooks/router/useSelectedRoom'; +import { useClientConfig } from '../../hooks/useClientConfig'; interface PersistentCallContainerProps { isVisible: boolean; @@ -26,6 +27,7 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr const { activeCallRoomId, setActiveCallRoomId } = useCallState(); const mx = useMatrixClient(); const room = useSelectedRoom(); + const clientConfig = useClientConfig(); logger.info(room); @@ -51,7 +53,7 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr }; if (activeCallRoomId && mx?.getUserId()) { - const newUrl = getWidgetUrl(mx, activeCallRoomId); + const newUrl = getWidgetUrl(mx, activeCallRoomId, clientConfig.elementCallUrl ?? ''); const userId = mx.getUserId() ?? ''; const app = createVirtualWidget( mx,