Skip to content

Commit

Permalink
Figure out opponentMember from the userId rather than the sender
Browse files Browse the repository at this point in the history
This is because to-device messages don't have a sender

Signed-off-by: Šimon Brandner <[email protected]>
  • Loading branch information
SimonBrandner committed Sep 27, 2021
1 parent fc07530 commit 3280394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webrtc/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2041,7 +2041,7 @@ export class MatrixCall extends EventEmitter {
this.opponentPartyId = msg.party_id || null;
}
this.opponentCaps = msg.capabilities || {} as CallCapabilities;
this.opponentMember = ev.sender;
this.opponentMember = this.client.getRoom(this.roomId).getMember(ev.getSender());
}

private async addBufferedIceCandidates(): Promise<void> {
Expand Down

0 comments on commit 3280394

Please sign in to comment.