Browse Source

Ensure that process recreation also use the restoreMutex

pull/3050/head
Benoit Marty 3 months ago
parent
commit
874bf5b901
  1. 2
      appnav/src/main/kotlin/io/element/android/appnav/di/MatrixClientsHolder.kt

2
appnav/src/main/kotlin/io/element/android/appnav/di/MatrixClientsHolder.kt

@ -74,7 +74,7 @@ class MatrixClientsHolder @Inject constructor(private val authenticationService: @@ -74,7 +74,7 @@ class MatrixClientsHolder @Inject constructor(private val authenticationService:
// Not ideal but should only happens in case of process recreation. This ensure we restore all the active sessions before restoring the node graphs.
runBlocking {
sessionIds.forEach { sessionId ->
restore(sessionId)
getOrRestore(sessionId)
}
}
}

Loading…
Cancel
Save