diff --git a/src/CallHandler.js b/src/CallHandler.js index 029b8917..5285be18 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -102,7 +102,9 @@ function _setCallListeners(call) { } function _setCallState(call, roomId, status) { - console.log("_setState >>> %s >>> %s >> %s", call, roomId, status); + console.log( + "Call state in %s changed to %s (%s)", roomId, status, (call ? call.state : "-") + ); calls[roomId] = call; if (call) { call.call_state = status; diff --git a/src/controllers/molecules/voip/CallView.js b/src/controllers/molecules/voip/CallView.js index 16cd398d..485782e9 100644 --- a/src/controllers/molecules/voip/CallView.js +++ b/src/controllers/molecules/voip/CallView.js @@ -49,7 +49,7 @@ module.exports = { return; } var call = CallHandler.getCall(payload.room_id); - if (call) { + if (call && call.type === "video") { this.getVideoView().getLocalVideoElement().style.display = "initial"; this.getVideoView().getRemoteVideoElement().style.display = "initial"; call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());