* Move Element Call event types to a more appropriate file To remove the potential for import cycles in src/models/Call.ts, which I was accidentally creating when I tried to reference data from the RoomListStore in the ElementCall class. * Make sure ElementCall tests clean up the call object * Upgrade Element Call to v0.14.1 * Delegate the sending of call notifications to Element Call As of Element Call version 0.14.0, the widget is now capable of sending call notifications itself if we just request this with the sendNotificationType URL parameter. This makes Element Web's group call code a little bit more succinct. * Fix createRoom test
26 lines
997 B
TypeScript
26 lines
997 B
TypeScript
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { EventType } from "matrix-js-sdk/src/matrix";
|
|
import { NamespacedValue } from "matrix-js-sdk/src/NamespacedValue";
|
|
|
|
export const JitsiCallMemberEventType = "io.element.video.member";
|
|
|
|
export interface JitsiCallMemberContent {
|
|
// Connected device IDs
|
|
devices: string[];
|
|
// Time at which this state event should be considered stale
|
|
expires_ts: number;
|
|
}
|
|
|
|
// Element Call no longer sends this event type; it only exists to support timeline rendering of
|
|
// group calls from a previous iteration of the group VoIP MSCs (MSC3401) which used it.
|
|
export const ElementCallEventType = new NamespacedValue(null, EventType.GroupCallPrefix);
|
|
|
|
export const ElementCallMemberEventType = new NamespacedValue(null, EventType.GroupCallMemberPrefix);
|