Get number of members per conversation from API

This commit is contained in:
Pierre HUBERT 2019-02-02 08:25:12 +01:00
parent 9f3311978d
commit a3f8e2f243

View File

@ -580,10 +580,10 @@ ComunicWeb.components.conversations.chatWindows = {
if(!ComunicWeb.components.calls.controller.isAvailable()) if(!ComunicWeb.components.calls.controller.isAvailable())
return; return;
//Check if it is a conversation with two members //Check if it is a conversation with an exceptable number of members
if(conversation.infos.members.length != 2) if(conversation.infos.members.length < 2
return; //Currently the call feature is offered just || conversation.infos.members.length > ComunicWeb.components.calls.controller.getConfig().maximum_number_members)
//for conversation of two people return;
//Add the call button //Add the call button
var button = createElem2({ var button = createElem2({