From be03249f112c6e860ba573005113007bbe124685 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 25 Jan 2019 10:13:30 +0100 Subject: [PATCH] Removed useless source code --- assets/js/components/calls/callWindow.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/assets/js/components/calls/callWindow.js b/assets/js/components/calls/callWindow.js index b8d3efd9..13a0c4e7 100644 --- a/assets/js/components/calls/callWindow.js +++ b/assets/js/components/calls/callWindow.js @@ -110,16 +110,14 @@ ComunicWeb.components.calls.callWindow = { //Get information about related conversation to get the name of the call - ComunicWeb.components.conversations.interface.getInfosOne(info.conversation_id, function(conv_info){ + ComunicWeb.components.conversations.utils.getNameForID(info.conversation_id, function(name){ - if(conv_info.error) + if(!name) return notify("Could not get information about related conversation!", "danger"); - ComunicWeb.components.conversations.utils.getName(conv_info, function(name){ - call.setTitle(name); - }) + call.setTitle(name); - }, false); + }); //Load user media call.setLoadingMessage("Waiting for your microphone and camera...");