rename m.expires_ts to expires_ts to be compatible with MSC/Element

This commit is contained in:
Bruno Windels 2023-01-05 15:47:01 +01:00
parent 32835e26b9
commit e26eb30b82
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ export const SDPStreamMetadataKey = "org.matrix.msc3077.sdp_stream_metadata";
export interface CallDeviceMembership {
device_id: string,
session_id: string,
["m.expires_ts"]?: number,
["expires_ts"]?: number,
feeds?: Array<{purpose: string}>
}

View File

@ -544,7 +544,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
callInfo["m.devices"].push({
["device_id"]: this.options.ownDeviceId,
["session_id"]: this.options.sessionId,
["m.expires_ts"]: now + CALL_MEMBER_VALIDITY_PERIOD_MS,
["expires_ts"]: now + CALL_MEMBER_VALIDITY_PERIOD_MS,
feeds: [{purpose: "m.usermedia"}]
});
}

View File

@ -408,7 +408,7 @@ export class Member {
}
export function memberExpiresAt(callDeviceMembership: CallDeviceMembership): number | undefined {
const expiresAt = callDeviceMembership["m.expires_ts"];
const expiresAt = callDeviceMembership["expires_ts"];
if (Number.isSafeInteger(expiresAt)) {
return expiresAt;
}