Skip to content

Commit 50f9d34

Browse files
committed
Only display video elements in video calls.
1 parent eedd437 commit 50f9d34

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/CallHandler.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ function _setCallListeners(call) {
102102
}
103103

104104
function _setCallState(call, roomId, status) {
105-
console.log("_setState >>> %s >>> %s >> %s", call, roomId, status);
105+
console.log(
106+
"Call state in %s changed to %s (%s)", roomId, status, (call ? call.state : "-")
107+
);
106108
calls[roomId] = call;
107109
if (call) {
108110
call.call_state = status;

‎src/controllers/molecules/voip/CallView.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
return;
5050
}
5151
var call = CallHandler.getCall(payload.room_id);
52-
if (call) {
52+
if (call && call.type === "video") {
5353
this.getVideoView().getLocalVideoElement().style.display = "initial";
5454
this.getVideoView().getRemoteVideoElement().style.display = "initial";
5555
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());

0 commit comments

Comments
 (0)