mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-03-15 04:12:32 +00:00
remove unused code
This commit is contained in:
parent
77ef45345d
commit
72281c7fad
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user