From bb3ec322fb6b0f7fe2e1db7a12755f372e8efdb8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 15 Dec 2020 16:21:14 +0000 Subject: [PATCH] Ignore party ID if opponent is v0 --- src/webrtc/call.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index a4f2660ce..83607400c 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -483,7 +483,10 @@ export class MatrixCall extends EventEmitter { this.setState(CallState.Ringing); this.direction = CallDirection.Inbound; this.opponentVersion = this.msg.version; - this.opponentPartyId = this.msg.party_id || null; + if (this.opponentVersion !== 0) { + // ignore party ID in v0 calls: party ID isn't a thing until v1 + this.opponentPartyId = this.msg.party_id || null; + } this.opponentCaps = this.msg.capabilities || {}; this.opponentMember = event.sender;