Pass network change events down to libsignal-net

This commit is contained in:
andrew-signal
2025-01-27 11:01:55 -10:00
committed by Greyson Parrelli
parent 139b62e469
commit 1b2a62ae09

View File

@@ -88,6 +88,7 @@ class IncomingMessageObserver(private val context: Application, private val sign
private val connectionNecessarySemaphore = Semaphore(0)
private val networkConnectionListener = NetworkConnectionListener(context) { isNetworkUnavailable ->
lock.withLock {
AppDependencies.libsignalNetwork.onNetworkChange()
if (isNetworkUnavailable()) {
Log.w(TAG, "Lost network connection. Shutting down our websocket connections and resetting the drained state.")
decryptionDrained = false