@@ -19,8 +19,8 @@ import { type IKeyTransport, KeyTransportEvents, type KeyTransportEventsHandlerM
19
19
import { type Logger , logger } from "../logger.ts" ;
20
20
import type { CallMembership } from "./CallMembership.ts" ;
21
21
import type { EncryptionKeysToDeviceEventContent , Statistics } from "./types.ts" ;
22
- import { ClientEvent , MatrixClient } from "../client.ts" ;
23
- import { MatrixEvent } from "../models/event.ts" ;
22
+ import { ClientEvent , type MatrixClient } from "../client.ts" ;
23
+ import type { MatrixEvent } from "../models/event.ts" ;
24
24
import { EventType } from "../@types/event.ts" ;
25
25
26
26
export class ToDeviceKeyTransport
@@ -40,11 +40,11 @@ export class ToDeviceKeyTransport
40
40
this . prefixedLogger = logger . getChild ( `[RTC: ${ roomId } ToDeviceKeyTransport]` ) ;
41
41
}
42
42
43
- start ( ) : void {
43
+ public start ( ) : void {
44
44
this . client . on ( ClientEvent . ToDeviceEvent , ( ev ) => this . onToDeviceEvent ( ev ) ) ;
45
45
}
46
46
47
- stop ( ) : void {
47
+ public stop ( ) : void {
48
48
this . client . off ( ClientEvent . ToDeviceEvent , this . onToDeviceEvent ) ;
49
49
}
50
50
@@ -89,7 +89,7 @@ export class ToDeviceKeyTransport
89
89
}
90
90
}
91
91
92
- receiveCallKeyEvent ( fromUser : string , content : EncryptionKeysToDeviceEventContent ) : void {
92
+ private receiveCallKeyEvent ( fromUser : string , content : EncryptionKeysToDeviceEventContent ) : void {
93
93
// The event has already been validated at this point.
94
94
95
95
this . statistics . counters . roomEventEncryptionKeysReceived += 1 ;
0 commit comments