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

Basic implementation of MSC3291

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-07-27 14:31:13 +02:00
parent 8e6040ad6f
commit 1df90f8fc7
2 changed files with 50 additions and 18 deletions

View File

@@ -297,6 +297,15 @@ export class CallEventHandler {
}
call.onAssertedIdentityReceived(event);
} else if (event.getType() === EventType.CallSDPStreamMetadataChanged) {
if (!call) return;
if (event.getContent().party_id === call.ourPartyId) {
// Ignore remote echo
return;
}
call.onSDPStreamMetadataChangedReceived(event);
}
}
}