mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Prevent IMO retries when network unavailable.
This commit is contained in:
committed by
Jeffrey Starke
parent
269d5752c4
commit
2148eb8760
@@ -249,7 +249,7 @@ class IncomingMessageObserver(
|
||||
}
|
||||
|
||||
private fun isConnectionAvailable(): Boolean {
|
||||
return authWebSocket.stateSnapshot == WebSocketConnectionState.CONNECTED || authWebSocket.shouldSendKeepAlives()
|
||||
return authWebSocket.stateSnapshot == WebSocketConnectionState.CONNECTED || (authWebSocket.shouldSendKeepAlives() && NetworkConstraint.isMet(context))
|
||||
}
|
||||
|
||||
private fun waitForConnectionNecessary() {
|
||||
|
||||
Reference in New Issue
Block a user