diff --git a/src/matrix/calls/PeerCall.ts b/src/matrix/calls/PeerCall.ts index 2b28fbef..dc85084a 100644 --- a/src/matrix/calls/PeerCall.ts +++ b/src/matrix/calls/PeerCall.ts @@ -164,8 +164,9 @@ export class PeerCall implements IDisposable { }); }); listen("negotiationneeded", () => { + const signalingState = this.peerConnection.signalingState; const promiseCreator = () => { - return logItem.wrap("onNegotiationNeeded", log => { + return logItem.wrap({l: "onNegotiationNeeded", signalingState}, log => { return this.handleNegotiation(log); }); };