Commit 0efbf37e authored by Muhammadali's avatar Muhammadali

update-

parent ba32fddb
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.27", "version": "4.8.28",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -10,23 +10,6 @@ import SecondNotifSip from '../components/SecondNotifSip'; ...@@ -10,23 +10,6 @@ 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 now_no_active = 0;
function activeUser() {
now_no_active = 0;
}
function updateChat() {
if (now_no_active >= no_active_delay && !!modalState.bool) {
location.reload();
return;
}
}
setInterval(() => {
now_no_active++;
updateChat();
}, 1000);
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);
const [dynamicValue, setDynamicValue] = useState('pending'); const [dynamicValue, setDynamicValue] = useState('pending');
...@@ -48,6 +31,25 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -48,6 +31,25 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
}, 5000); }, 5000);
} }
}, [secondLine]); }, [secondLine]);
// ======================================================
var no_active_delay = 60;
var now_no_active = 0;
function activeUser() {
now_no_active = 0;
}
function updateChat() {
if (now_no_active >= no_active_delay && !!modalState.bool) {
location.reload();
return;
}
}
setInterval(() => {
now_no_active++;
updateChat();
}, 1000);
document.onmousemove = activeUser;
console.log('modalState_bool: ', !!modalState.bool);
// ======================================================
useEffect(() => { useEffect(() => {
if (wsphonedata && wsphonedata?.number) { if (wsphonedata && wsphonedata?.number) {
......
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