Ignore party ID if opponent is v0

This commit is contained in:
David Baker
2020-12-15 16:21:14 +00:00
parent f3ee164a7d
commit bb3ec322fb
+4 -1
View File
@@ -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;