Commit c6fb74bd authored by Muhammadali's avatar Muhammadali

update-

parent 72858189
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.25", "version": "4.8.26",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -899,11 +899,11 @@ export class BoxDialer { ...@@ -899,11 +899,11 @@ export class BoxDialer {
console.log('local: ', local); console.log('local: ', local);
if (local) { if (local) {
this.callSession.unhold(); this.callSession.unhold();
this.onSipStateChange['setCallEvents']({ callHold: false }); this.onSipStateChange['setCallEvents']({ callHold: false });
} else { } else {
this.callSession.hold(); this.callSession.hold();
this.onSipStateChange['setCallEvents']({ callHold: true }); this.onSipStateChange['setCallEvents']({ callHold: true });
} }
} }
......
...@@ -10,22 +10,22 @@ import SecondNotifSip from '../components/SecondNotifSip'; ...@@ -10,22 +10,22 @@ import SecondNotifSip from '../components/SecondNotifSip';
import InnerCaller from '../components/InnerCaller'; import InnerCaller from '../components/InnerCaller';
import { contextModalEventProperty } from '../context/modalEventProperty'; import { contextModalEventProperty } from '../context/modalEventProperty';
var no_active_delay = 60; // var no_active_delay = 60;
var now_no_active = 0; // var now_no_active = 0;
function activeUser() { // function activeUser() {
now_no_active = 0; // now_no_active = 0;
} // }
function updateChat() { // function updateChat() {
if (now_no_active >= no_active_delay) { // if (now_no_active >= no_active_delay) {
location.reload(); // location.reload();
return; // return;
} // }
} // }
setInterval(() => { // setInterval(() => {
now_no_active++; // now_no_active++;
updateChat(); // updateChat();
}, 1000); // }, 1000);
document.onmousemove = activeUser; // document.onmousemove = activeUser;
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const [phoneModal, setPhoneModal] = useState(false); const [phoneModal, setPhoneModal] = useState(false);
...@@ -61,6 +61,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -61,6 +61,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
setInnerCallerModal, setInnerCallerModal,
'innerCallerModal', 'innerCallerModal',
); );
if (boxDialer.isUaRunning()) { if (boxDialer.isUaRunning()) {
console.log('UA is running! in other tab'); console.log('UA is running! in other tab');
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment