If the remote identity does not match the target peer identity, I don't think the InvalidModificaitonError is the right error to return because there are too many other things that could cause the same error and would be handled differently. I would suggest created a new error for this.
Initially raised by @fluffy at https://github.com/w3c/webrtc-pc/issues/1256
If the remote identity does not match the target peer identity, I don't think the InvalidModificaitonError is the right error to return because there are too many other things that could cause the same error and would be handled differently. I would suggest created a new error for this.