Prepare to encrypt when a call arrives
So we're ready to send an answer straight away if the user answerspull/21833/head
parent
b6a4876c8a
commit
5535d7fb97
|
@ -681,6 +681,12 @@ export default class CallHandler {
|
||||||
Analytics.trackEvent('voip', 'receiveCall', 'type', call.type);
|
Analytics.trackEvent('voip', 'receiveCall', 'type', call.type);
|
||||||
this.calls.set(mappedRoomId, call)
|
this.calls.set(mappedRoomId, call)
|
||||||
this.setCallListeners(call);
|
this.setCallListeners(call);
|
||||||
|
|
||||||
|
// get ready to send encrypted events in the room, so if the user does answer
|
||||||
|
// the call, we'll be ready to send. NB. This is the protocol-level room ID not
|
||||||
|
// the mapped one: that's where we'll send the events.
|
||||||
|
const cli = MatrixClientPeg.get();
|
||||||
|
cli.prepareToEncrypt(cli.getRoom(call.roomId));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'hangup':
|
case 'hangup':
|
||||||
|
|
Loading…
Reference in New Issue