remove unused code

This commit is contained in:
PhilReact 2024-10-31 08:58:42 +02:00
parent 77ef45345d
commit 72281c7fad

View File

@ -671,42 +671,7 @@ const handleNotification = async (groups) => {
const listenForNewGroupAnnouncements = async () => {
try {
setTimeout(() => {
checkNewMessages();
}, 500);
if (interval) {
clearInterval(interval);
}
let isCalling = false;
interval = setInterval(async () => {
if (isCalling) return;
isCalling = true;
const res = await checkNewMessages();
isCalling = false;
}, 180000);
} catch (error) {}
};
const listenForThreadUpdates = async () => {
try {
setTimeout(() => {
checkThreads();
}, 500);
if (intervalThreads) {
clearInterval(intervalThreads);
}
let isCalling = false;
intervalThreads = setInterval(async () => {
if (isCalling) return;
isCalling = true;
const res = await checkThreads();
isCalling = false;
}, 60000);
} catch (error) {}
};
const forceCloseWebSocket = () => {
if (socket) {