1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Improve ICE candidate batching

Hopefully send fewer ICE candidate events by obeying the batching
guidelines in MSC2476.
This commit is contained in:
David Baker
2020-10-21 18:23:01 +01:00
parent 28198a6f40
commit d00d07a1c1
2 changed files with 72 additions and 30 deletions

View File

@@ -252,6 +252,8 @@ export class CallEventHandler {
}
}
} else if (event.getType() === EventType.CallSelectAnswer) {
if (!call) return;
if (event.getContent().party_id === call.ourPartyId) {
// Ignore remote echo
return;