mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Get number of members per conversation from API
This commit is contained in:
parent
9f3311978d
commit
a3f8e2f243
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user