From 2ea7a0d0824b82874919b7b025627f683b1d88bf Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 14 Jul 2022 21:42:44 +0200 Subject: [PATCH] add missing events from reemitter to GroupCall --- src/webrtc/groupCall.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/webrtc/groupCall.ts b/src/webrtc/groupCall.ts index a494447a0fc..1b988174775 100644 --- a/src/webrtc/groupCall.ts +++ b/src/webrtc/groupCall.ts @@ -1,7 +1,14 @@ import { TypedEventEmitter } from "../models/typed-event-emitter"; import { CallFeed, SPEAKING_THRESHOLD } from "./callFeed"; import { MatrixClient } from "../client"; -import { CallErrorCode, CallEvent, CallState, genCallID, MatrixCall, setTracksEnabled } from "./call"; +import { CallErrorCode, + CallEvent, + CallEventHandlerMap, + CallState, + genCallID, + MatrixCall, + setTracksEnabled, +} from "./call"; import { RoomMember } from "../models/room-member"; import { Room } from "../models/room"; import { logger } from "../logger"; @@ -146,7 +153,10 @@ function getCallUserId(call: MatrixCall): string | null { return call.getOpponentMember()?.userId || call.invitee || null; } -export class GroupCall extends TypedEventEmitter { +export class GroupCall extends TypedEventEmitter< + GroupCallEvent | CallEvent, + GroupCallEventHandlerMap & CallEventHandlerMap +> { // Config public activeSpeakerInterval = 1000; public retryCallInterval = 5000;