mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-01 21:25:18 +00:00
Add ability to specify sticky events in URI.
This commit is contained in:
@@ -141,6 +141,11 @@ export interface UrlProperties {
|
|||||||
* can be "light", "dark", "light-high-contrast" or "dark-high-contrast".
|
* can be "light", "dark", "light-high-contrast" or "dark-high-contrast".
|
||||||
*/
|
*/
|
||||||
theme: string | null;
|
theme: string | null;
|
||||||
|
/**
|
||||||
|
* Whether or not the call should be held using the sticky event implementation,
|
||||||
|
* where possible.
|
||||||
|
*/
|
||||||
|
preferStickyEvents: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -501,6 +506,7 @@ export const computeUrlParams = (search = "", hash = ""): UrlParams => {
|
|||||||
sentryDsn: parser.getParam("sentryDsn"),
|
sentryDsn: parser.getParam("sentryDsn"),
|
||||||
sentryEnvironment: parser.getParam("sentryEnvironment"),
|
sentryEnvironment: parser.getParam("sentryEnvironment"),
|
||||||
e2eEnabled: parser.getFlagParam("enableE2EE", true),
|
e2eEnabled: parser.getFlagParam("enableE2EE", true),
|
||||||
|
preferStickyEvents: parser.getFlagParam("preferStickyEvents", false),
|
||||||
};
|
};
|
||||||
|
|
||||||
const configuration: Partial<UrlConfiguration> = {
|
const configuration: Partial<UrlConfiguration> = {
|
||||||
|
|||||||
@@ -1834,7 +1834,9 @@ export class CallViewModel {
|
|||||||
await enterRTCSession(this.matrixRTCSession, advertised.transport, {
|
await enterRTCSession(this.matrixRTCSession, advertised.transport, {
|
||||||
encryptMedia: this.options.encryptionSystem.kind !== E2eeType.NONE,
|
encryptMedia: this.options.encryptionSystem.kind !== E2eeType.NONE,
|
||||||
useMultiSfu: advertised.multiSfu,
|
useMultiSfu: advertised.multiSfu,
|
||||||
preferStickyEvents: advertised.preferStickyEvents,
|
preferStickyEvents:
|
||||||
|
this.urlParams.preferStickyEvents &&
|
||||||
|
advertised.preferStickyEvents,
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error("Error entering RTC session", e);
|
logger.error("Error entering RTC session", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user