Improve network reliability.

This commit is contained in:
Greyson Parrelli
2023-01-11 13:11:34 -05:00
committed by Alex Hart
parent df86d1b4ba
commit 522346479c
5 changed files with 33 additions and 19 deletions

View File

@@ -132,8 +132,7 @@ public class BackgroundMessageRetriever {
* care of it.
*/
public static boolean shouldIgnoreFetch() {
return ApplicationDependencies.getAppForegroundObserver().isForegrounded() &&
!ApplicationDependencies.getSignalServiceNetworkAccess().isCensored();
return ApplicationDependencies.getAppForegroundObserver().isForegrounded();
}
private static String logSuffix(long startTime) {

View File

@@ -132,7 +132,7 @@ public class IncomingMessageObserver {
}
public boolean isDecryptionDrained() {
return decryptionDrained || networkAccess.isCensored();
return decryptionDrained;
}
public void notifyDecryptionsDrained() {
@@ -179,8 +179,7 @@ public class IncomingMessageObserver {
return registered &&
(appVisible || !fcmEnabled || forceWebsocket || Util.hasItems(keepAliveTokens)) &&
hasNetwork &&
!networkAccess.isCensored();
hasNetwork;
}
private synchronized void waitForConnectionNecessary() {