mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-10 21:55:19 +00:00
Say "component" for the component
"Embedded" already means something here: the embedded package is the widget build. Where a comment meant Element Call running as a React component inside a host application, it now says so, and the params it starts from are `componentProperties`. "Host" stays the word for the application on the other side, whether that is a widget container or an application rendering the component. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
f70fba1dd6
commit
3dc7cfe10b
+4
-4
@@ -58,7 +58,7 @@ import { HostBridgeProvider } from "../src/HostBridge";
|
||||
import { RootElementProvider } from "../src/RootElementContext";
|
||||
import {
|
||||
configurationForIntent,
|
||||
hostedProperties,
|
||||
componentProperties,
|
||||
type UrlParams,
|
||||
UrlParamsProvider,
|
||||
UserIntent,
|
||||
@@ -209,7 +209,7 @@ export const ElementCall: FC<ElementCallProps> = ({
|
||||
const stableConfig = useStableValue(config);
|
||||
const params = useMemo(
|
||||
(): UrlParams => ({
|
||||
...hostedProperties,
|
||||
...componentProperties,
|
||||
roomId,
|
||||
...configurationForIntent(intent),
|
||||
...stableConfig,
|
||||
@@ -249,8 +249,8 @@ export const ElementCall: FC<ElementCallProps> = ({
|
||||
<I18nextProvider i18n={i18n}>
|
||||
<HostBridgeProvider value={hostBridge}>
|
||||
<UrlParamsProvider value={params}>
|
||||
{/* Element Call's own navigation stays in memory, so that being
|
||||
embedded cannot disturb the host's URL. */}
|
||||
{/* Element Call's own navigation stays in memory, so that the
|
||||
component cannot disturb the host's URL. */}
|
||||
<MemoryRouter>
|
||||
<div ref={setContainer} className={styles.root}>
|
||||
{container !== null &&
|
||||
|
||||
Reference in New Issue
Block a user