Timeline : avoid crash when destroying

This commit is contained in:
ganfra
2023-12-12 15:36:27 +01:00
parent ba13164b41
commit 960945de34

View File

@@ -126,7 +126,11 @@ class RustMatrixTimeline(
private suspend fun fetchMembers() = withContext(dispatcher) {
initLatch.await()
innerTimeline.fetchMembers()
try {
innerTimeline.fetchMembers()
} catch (exception: Exception) {
Timber.e(exception, "Error fetching members for room ${matrixRoom.roomId}")
}
}
@OptIn(ExperimentalCoroutinesApi::class)