diff --git a/src/webrtc/callEventHandler.ts b/src/webrtc/callEventHandler.ts index cef75e998..94e9ec6a2 100644 --- a/src/webrtc/callEventHandler.ts +++ b/src/webrtc/callEventHandler.ts @@ -18,18 +18,19 @@ import MatrixEvent from '../models/event'; import {logger} from '../logger'; import { createNewMatrixCall, MatrixCall, CallErrorCode, CallState, CallDirection } from './call'; import { EventType } from '../@types/event'; +import { MatrixClient } from '../client'; // Don't ring unless we'd be ringing for at least 3 seconds: the user needs some // time to press the 'accept' button const RING_GRACE_PERIOD = 3000; export class CallEventHandler { - client: any; + client: MatrixClient; calls: Map; - callEventBuffer: Array; + callEventBuffer: MatrixEvent[]; candidatesByCall: Map>; - constructor(client: any) { + constructor(client: MatrixClient) { this.client = client; this.calls = new Map(); // The sync code always emits one event at a time, so it will patiently