From d2126c4c354b7666482d0d73398b2b1a0f08d01c Mon Sep 17 00:00:00 2001 From: Jules Rosser Date: Fri, 31 Jan 2025 10:25:26 -0800 Subject: [PATCH 1/2] remove unnecessary import --- src/libs/actions/User.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/actions/User.ts b/src/libs/actions/User.ts index 2085cc181aaa..67b6fc4f470a 100644 --- a/src/libs/actions/User.ts +++ b/src/libs/actions/User.ts @@ -30,7 +30,6 @@ import Log from '@libs/Log'; import Navigation from '@libs/Navigation/Navigation'; import {isOffline} from '@libs/Network/NetworkStore'; import * as SequentialQueue from '@libs/Network/SequentialQueue'; -import NetworkConnection from '@libs/NetworkConnection'; import * as NumberUtils from '@libs/NumberUtils'; import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils'; import * as Pusher from '@libs/Pusher/pusher'; From bbd7e3a5cddae4798fb6d461862671fc82c007e8 Mon Sep 17 00:00:00 2001 From: Jules Rosser Date: Fri, 31 Jan 2025 10:31:10 -0800 Subject: [PATCH 2/2] remove commented out line --- src/libs/actions/User.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/actions/User.ts b/src/libs/actions/User.ts index 67b6fc4f470a..c8c9ae12773d 100644 --- a/src/libs/actions/User.ts +++ b/src/libs/actions/User.ts @@ -971,7 +971,6 @@ function checkforMissingPongEvents() { // If the oldest timestamp is older than 2 * PING_INTERVAL_LENGTH_IN_SECONDS, then set the network status to offline if (ageOfEventInMS > NO_EVENT_RECEIVED_TO_BE_OFFLINE_THRESHOLD_IN_SECONDS * 1000) { Log.info(`[Pusher PINGPONG] The server has not replied to the PING event ${eventID} in ${ageOfEventInMS} ms so going offline`); - // NetworkConnection.setOfflineStatus(true, 'The client never got a Pusher PONG event after sending a Pusher PING event'); // When going offline, reset the pingpong state so that when the network reconnects, the client will start fresh lastTimestamp = Date.now();