mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-25 19:13:34 +01:00
Prevent IMO from running before registration.
This commit is contained in:
@@ -248,7 +248,7 @@ class IncomingMessageObserver(
|
||||
}
|
||||
|
||||
private fun isConnectionAvailable(): Boolean {
|
||||
return authWebSocket.stateSnapshot == WebSocketConnectionState.CONNECTED || (authWebSocket.shouldSendKeepAlives() && NetworkConstraint.isMet(context))
|
||||
return SignalStore.account.isRegistered && (authWebSocket.stateSnapshot == WebSocketConnectionState.CONNECTED || (authWebSocket.shouldSendKeepAlives() && NetworkConstraint.isMet(context)))
|
||||
}
|
||||
|
||||
private fun waitForConnectionNecessary() {
|
||||
|
||||
Reference in New Issue
Block a user