1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Don't throw with no opponentDeviceInfo (#3107)

This commit is contained in:
Šimon Brandner
2023-01-26 17:28:56 +01:00
committed by GitHub
parent 5c0cb3a536
commit c9bc20aa4d

View File

@@ -2335,11 +2335,16 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
const userId = this.invitee || this.getOpponentMember()!.userId;
if (this.client.getUseE2eForGroupCall()) {
if (!this.opponentDeviceInfo) {
logger.warn(`Call ${this.callId} sendVoipEvent() failed: we do not have opponentDeviceInfo`);
return;
}
await this.client.encryptAndSendToDevices(
[
{
userId,
deviceInfo: this.opponentDeviceInfo!,
deviceInfo: this.opponentDeviceInfo,
},
],
{