mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
fix merge fails
This commit is contained in:
@@ -343,8 +343,6 @@ let urlParamCache: {
|
|||||||
export const getUrlParams = (
|
export const getUrlParams = (
|
||||||
search = window.location.search,
|
search = window.location.search,
|
||||||
hash = window.location.hash,
|
hash = window.location.hash,
|
||||||
/** Skipping the cache might be needed in tests, to allow recomputing based on mocked platform changes. */
|
|
||||||
skipCache = false,
|
|
||||||
): UrlParams => {
|
): UrlParams => {
|
||||||
if (
|
if (
|
||||||
urlParamCache.search === search &&
|
urlParamCache.search === search &&
|
||||||
@@ -543,15 +541,12 @@ export const computeUrlParams = (search = "", hash = ""): UrlParams => {
|
|||||||
intentAndPlatformDerivedConfiguration,
|
intentAndPlatformDerivedConfiguration,
|
||||||
);
|
);
|
||||||
|
|
||||||
const params = {
|
return {
|
||||||
...properties,
|
...properties,
|
||||||
...intentPreset,
|
...intentPreset,
|
||||||
...pickBy(configuration, (v?: unknown) => v !== undefined),
|
...pickBy(configuration, (v?: unknown) => v !== undefined),
|
||||||
...intentAndPlatformDerivedConfiguration,
|
...intentAndPlatformDerivedConfiguration,
|
||||||
};
|
};
|
||||||
urlParamCache = { search, hash, params };
|
|
||||||
|
|
||||||
return params;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user