You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Ignore party ID if opponent is v0
This commit is contained in:
@@ -483,7 +483,10 @@ export class MatrixCall extends EventEmitter {
|
|||||||
this.setState(CallState.Ringing);
|
this.setState(CallState.Ringing);
|
||||||
this.direction = CallDirection.Inbound;
|
this.direction = CallDirection.Inbound;
|
||||||
this.opponentVersion = this.msg.version;
|
this.opponentVersion = this.msg.version;
|
||||||
|
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.opponentPartyId = this.msg.party_id || null;
|
||||||
|
}
|
||||||
this.opponentCaps = this.msg.capabilities || {};
|
this.opponentCaps = this.msg.capabilities || {};
|
||||||
this.opponentMember = event.sender;
|
this.opponentMember = event.sender;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user