You've already forked matrix-react-sdk
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:
@ -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> { }
|
||||
|
Reference in New Issue
Block a user