mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Timeline : avoid crash when destroying
This commit is contained in:
+5
-1
@@ -126,7 +126,11 @@ class RustMatrixTimeline(
|
|||||||
|
|
||||||
private suspend fun fetchMembers() = withContext(dispatcher) {
|
private suspend fun fetchMembers() = withContext(dispatcher) {
|
||||||
initLatch.await()
|
initLatch.await()
|
||||||
innerTimeline.fetchMembers()
|
try {
|
||||||
|
innerTimeline.fetchMembers()
|
||||||
|
} catch (exception: Exception) {
|
||||||
|
Timber.e(exception, "Error fetching members for room ${matrixRoom.roomId}")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
@OptIn(ExperimentalCoroutinesApi::class)
|
||||||
|
|||||||
Reference in New Issue
Block a user