Commit 4ead3fb4 authored by Muhammadali's avatar Muhammadali

update-

parent 217cd2bd
...@@ -32,34 +32,34 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -32,34 +32,34 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
} }
}, [secondLine]); }, [secondLine]);
// ====================================================== // ======================================================
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() {
location.reload(); // location.reload();
return; // return;
} // }
setInterval(() => { // setInterval(() => {
if ( // if (
now_no_active >= no_active_delay && modalState.bool === 'undefined' // now_no_active >= no_active_delay && modalState.bool === 'undefined'
? true // ? true
: (!modalState.bool && !innerCallerModal.bool) || // : (!modalState.bool && !innerCallerModal.bool) ||
modalState.bool === 'undefined' // modalState.bool === 'undefined'
) { // ) {
now_no_active++; // now_no_active++;
updateChat(); // updateChat();
} // }
}, 1000); // }, 1000);
document.onmousemove = activeUser; // document.onmousemove = activeUser;
console.log( // console.log(
'modalState_bool: ', // 'modalState_bool: ',
modalState.bool === 'undefined' // modalState.bool === 'undefined'
? true // ? true
: (!modalState.bool && !innerCallerModal.bool) || // : (!modalState.bool && !innerCallerModal.bool) ||
modalState.bool === 'undefined', // modalState.bool === 'undefined',
); // );
// ====================================================== // ======================================================
useEffect(() => { useEffect(() => {
......
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