Bug 1534692 - Part 8: In setIdentityProvider, fall back to the target peer identity if a peerIdentity is not passed. r=jib

Differential Revision: https://phabricator.services.mozilla.com/D24793

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Byron Campen [:bwc] 2019-03-29 18:38:56 +00:00
Родитель 86c7dd204c
Коммит 379c5bfe4e
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1053,6 +1053,7 @@ class RTCPeerConnection {
setIdentityProvider(provider,
{protocol, usernameHint, peerIdentity} = {}) {
this._checkClosed();
peerIdentity = peerIdentity || this._impl.peerIdentity;
this._localIdp.setIdentityProvider(provider,
protocol, usernameHint, peerIdentity);
}