From ece7a97d426648677b72d915208b57ec177462c2 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 25 Jan 2019 19:18:12 +0100 Subject: [PATCH] Follow API update --- assets/js/components/calls/callWindow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/calls/callWindow.js b/assets/js/components/calls/callWindow.js index 1d51a375..6405c247 100644 --- a/assets/js/components/calls/callWindow.js +++ b/assets/js/components/calls/callWindow.js @@ -321,7 +321,7 @@ ComunicWeb.components.calls.callWindow = { //Check if all other members rejected call var allRejected = true; call.info.members.forEach(function(member){ - if(member.accepted != "rejected" && member.userID != userID()) + if(member.status != "rejected" && member.userID != userID()) allRejected = false; }); @@ -340,7 +340,7 @@ ComunicWeb.components.calls.callWindow = { call.info.members.forEach(function(member){ //Ignores all not accepted connection - if(member.userID == userID() || member.accepted !== "accepted") + if(member.userID == userID() || member.status !== "accepted") return; //Check if we have not peer information