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...");