mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-08 18:48:18 +01:00
rename m.expires_ts to expires_ts to be compatible with MSC/Element
This commit is contained in:
parent
32835e26b9
commit
e26eb30b82
@ -25,7 +25,7 @@ export const SDPStreamMetadataKey = "org.matrix.msc3077.sdp_stream_metadata";
|
|||||||
export interface CallDeviceMembership {
|
export interface CallDeviceMembership {
|
||||||
device_id: string,
|
device_id: string,
|
||||||
session_id: string,
|
session_id: string,
|
||||||
["m.expires_ts"]?: number,
|
["expires_ts"]?: number,
|
||||||
feeds?: Array<{purpose: string}>
|
feeds?: Array<{purpose: string}>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
|||||||
callInfo["m.devices"].push({
|
callInfo["m.devices"].push({
|
||||||
["device_id"]: this.options.ownDeviceId,
|
["device_id"]: this.options.ownDeviceId,
|
||||||
["session_id"]: this.options.sessionId,
|
["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"}]
|
feeds: [{purpose: "m.usermedia"}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -408,7 +408,7 @@ export class Member {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function memberExpiresAt(callDeviceMembership: CallDeviceMembership): number | undefined {
|
export function memberExpiresAt(callDeviceMembership: CallDeviceMembership): number | undefined {
|
||||||
const expiresAt = callDeviceMembership["m.expires_ts"];
|
const expiresAt = callDeviceMembership["expires_ts"];
|
||||||
if (Number.isSafeInteger(expiresAt)) {
|
if (Number.isSafeInteger(expiresAt)) {
|
||||||
return expiresAt;
|
return expiresAt;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user