You've already forked matrix-js-sdk
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:
@@ -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,
|
||||
},
|
||||
],
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user