Remove old call system

This commit is contained in:
2020-04-10 11:17:10 +02:00
parent 8dc337a00c
commit c8d0fc3186
15 changed files with 8 additions and 2116 deletions

View File

@ -585,14 +585,9 @@ const ConvChatWindow = {
showCallButton: function(conversation){
//Check if calls are disabled
if(!ComunicWeb.components.calls.controller.isAvailable())
if(/*TODO : implement */false)
return;
//Check if it is a conversation with an exceptable number of members
if(conversation.infos.members.length < 2
|| conversation.infos.members.length > ComunicWeb.components.calls.controller.getConfig().maximum_number_members)
return;
//Add the call button
var button = createElem2({
insertBefore: conversation.box.boxTools.firstChild,
@ -603,7 +598,7 @@ const ConvChatWindow = {
conversation.box.callButton = button;
button.addEventListener("click", function(){
ComunicWeb.components.calls.controller.call(conversation.infos.ID);
// TODO : implement
});
},