Commit 4ead3fb4 authored by Muhammadali's avatar Muhammadali

update-

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