Prevent IMO from running before registration.

This commit is contained in:
Cody Henthorne
2025-09-24 14:05:53 -04:00
committed by Jeffrey Starke
parent 228a993237
commit e2be1e0c79

View File

@@ -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() {