Add ability to specify sticky events in URI.

This commit is contained in:
Half-Shot
2025-10-27 11:37:56 +00:00
parent 5b21691c21
commit b59275b3e1
2 changed files with 9 additions and 1 deletions

View File

@@ -141,6 +141,11 @@ export interface UrlProperties {
* can be "light", "dark", "light-high-contrast" or "dark-high-contrast".
*/
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"),
sentryEnvironment: parser.getParam("sentryEnvironment"),
e2eEnabled: parser.getFlagParam("enableE2EE", true),
preferStickyEvents: parser.getFlagParam("preferStickyEvents", false),
};
const configuration: Partial<UrlConfiguration> = {

View File

@@ -1834,7 +1834,9 @@ export class CallViewModel {
await enterRTCSession(this.matrixRTCSession, advertised.transport, {
encryptMedia: this.options.encryptionSystem.kind !== E2eeType.NONE,
useMultiSfu: advertised.multiSfu,
preferStickyEvents: advertised.preferStickyEvents,
preferStickyEvents:
this.urlParams.preferStickyEvents &&
advertised.preferStickyEvents,
});
} catch (e) {
logger.error("Error entering RTC session", e);