Merge pull request #4207 from element-hq/legacy-member-events

Remove feature_use_device_session_member_events
This commit is contained in:
Robin
2026-08-26 19:49:20 +02:00
committed by GitHub
5 changed files with 2 additions and 28 deletions

View File

@@ -5,9 +5,6 @@
"server_name": "synapse.m.localhost" "server_name": "synapse.m.localhost"
} }
}, },
"features": {
"feature_use_device_session_member_events": true
},
"ssla": "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf", "ssla": "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf",
"matrix_rtc_session": { "matrix_rtc_session": {
"wait_for_key_rotation_ms": 3000, "wait_for_key_rotation_ms": 3000,

View File

@@ -8,9 +8,6 @@
"livekit": { "livekit": {
"livekit_service_url": "https://livekit-jwt.mydomain.com" "livekit_service_url": "https://livekit-jwt.mydomain.com"
}, },
"features": {
"feature_use_device_session_member_events": true
},
"ssla": "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf", "ssla": "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf",
"matrix_rtc_mode": "compatibility", "matrix_rtc_mode": "compatibility",
"matrix_rtc_session": { "matrix_rtc_session": {

View File

@@ -86,15 +86,6 @@ export interface ConfigOptions {
* Allow to join group calls without audio and video. * Allow to join group calls without audio and video.
*/ */
feature_group_calls_without_video_and_audio?: boolean; feature_group_calls_without_video_and_audio?: boolean;
/**
* Send device-specific call session membership state events instead of
* legacy user-specific call membership state events.
* This setting has no effect when the user joins an active call with
* legacy state events. For compatibility, Element Call will always join
* active legacy calls with legacy state events.
*/
feature_use_device_session_member_events?: boolean;
}; };
/** /**
@@ -267,9 +258,6 @@ export interface ResolvedConfigOptions extends ConfigOptions {
} }
export const DEFAULT_CONFIG: ResolvedConfigOptions = { export const DEFAULT_CONFIG: ResolvedConfigOptions = {
features: {
feature_use_device_session_member_events: true,
},
sync_disconnect_grace_period_ms: 10000, sync_disconnect_grace_period_ms: 10000,
ssla: "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf", ssla: "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf",
media_quality: { media_quality: {

View File

@@ -130,10 +130,7 @@ describe("LocalMembership", () => {
}, },
], ],
undefined, undefined,
expect.objectContaining({ expect.objectContaining({ manageMediaKeys: true }),
manageMediaKeys: true,
useLegacyMemberEvents: false,
}),
); );
}); });
}); });

View File

@@ -851,9 +851,7 @@ export function enterRTCSession(
// have started tracking by the time calls start getting created. // have started tracking by the time calls start getting created.
// groupCallOTelMembership?.onJoinCall(); // groupCallOTelMembership?.onJoinCall();
const { features, matrix_rtc_session: matrixRtcSessionConfig } = Config.get(); const { matrix_rtc_session: matrixRtcSessionConfig } = Config.get();
const useDeviceSessionMemberEvents =
features?.feature_use_device_session_member_events;
const { sendNotificationType: notificationType, callIntent } = getUrlParams(); const { sendNotificationType: notificationType, callIntent } = getUrlParams();
const multiSFU = const multiSFU =
matrixRTCMode === MatrixRTCMode.Compatibility || matrixRTCMode === MatrixRTCMode.Compatibility ||
@@ -895,9 +893,6 @@ export function enterRTCSession(
notificationType, notificationType,
callIntent, callIntent,
manageMediaKeys: encryptMedia, manageMediaKeys: encryptMedia,
...(useDeviceSessionMemberEvents !== undefined && {
useLegacyMemberEvents: !useDeviceSessionMemberEvents,
}),
delayedLeaveEventRestartMs: delayedLeaveEventRestartMs:
matrixRtcSessionConfig?.delayed_leave_event_restart_ms, matrixRtcSessionConfig?.delayed_leave_event_restart_ms,
delayedLeaveEventDelayMs: delayedLeaveEventDelayMs: