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

Implement call holding functionality

Using m.call.negotiate
This commit is contained in:
David Baker
2020-10-29 17:54:54 +00:00
parent 0ca8613896
commit 33d1a33a17
3 changed files with 237 additions and 106 deletions

View File

@@ -260,6 +260,15 @@ export class CallEventHandler {
}
call.onSelectAnswerReceived(event);
} else if (event.getType() === EventType.CallNegotiate) {
if (!call) return;
if (event.getContent().party_id === call.ourPartyId) {
// Ignore remote echo
return;
}
call.onNegotiateReceived(event);
}
}
}