From 6e1e05845bb4e2be7b07445210c59b064ef9ec36 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 25 Feb 2019 11:55:22 +0100 Subject: [PATCH] Fix issue on page reloading --- assets/js/components/calls/controller.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/js/components/calls/controller.js b/assets/js/components/calls/controller.js index 9a19ba5b..c297f277 100644 --- a/assets/js/components/calls/controller.js +++ b/assets/js/components/calls/controller.js @@ -139,11 +139,13 @@ ComunicWeb.components.calls.controller = { * Call this method to initialize a call for a call we have information about * * @param {Object} call Information about the call + * @param {Boolean} force Specify whether call should be forced to be open, + * even if they are already reported as open */ - open: function(call){ + open: function(call, force){ //Check if the call is already in the list of calls - if(ComunicWeb.components.calls.currentList.isCallInList(call.id)) + if(!force && ComunicWeb.components.calls.currentList.isCallInList(call.id)) return; //Add the call to the list of opened calls @@ -272,7 +274,7 @@ ComunicWeb.components.calls.controller = { return notify("Could not get information about a call!", "danger"); } - ComunicWeb.components.calls.controller.open(call); + ComunicWeb.components.calls.controller.open(call, true); });