1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Room call banner (#9378)

Signed-off-by: Timo K <timok@element.io>
Co-authored-by: Timo K <timok@element.io>
Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
Timo
2022-10-17 21:36:17 +02:00
committed by GitHub
parent 13db1b17be
commit 372720ec8b
7 changed files with 342 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import type { Room } from "matrix-js-sdk/src/models/room";
import type { RoomMember } from "matrix-js-sdk/src/models/room-member";
import type { MatrixEvent } from "matrix-js-sdk/src/models/event";
import { mkEvent } from "./test-utils";
import { Call, ElementCall, JitsiCall } from "../../src/models/Call";
import { Call, ConnectionState, ElementCall, JitsiCall } from "../../src/models/Call";
export class MockedCall extends Call {
public static readonly EVENT_TYPE = "org.example.mocked_call";
@ -61,6 +61,10 @@ export class MockedCall extends Call {
})]);
}
public get groupCall(): MatrixEvent {
return this.event;
}
public get participants(): Set<RoomMember> {
return super.participants;
}
@ -68,6 +72,10 @@ export class MockedCall extends Call {
super.participants = value;
}
public setConnectionState(value: ConnectionState): void {
super.connectionState = value;
}
// No action needed for any of the following methods since this is just a mock
protected getDevices(): string[] { return []; }
protected async setDevices(): Promise<void> { }