From 6cd764dc1f0fe8f5111477bbbcfeb9f554af1baa Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 27 Jul 2023 20:49:56 +0200 Subject: [PATCH] Timeline: fetch members only after timeline is ready --- .../android/libraries/matrix/impl/timeline/RustMatrixTimeline.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/RustMatrixTimeline.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/RustMatrixTimeline.kt index 3997a492ac..796b48ebb3 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/RustMatrixTimeline.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/RustMatrixTimeline.kt @@ -127,6 +127,7 @@ class RustMatrixTimeline( } private suspend fun fetchMembers() = withContext(dispatcher) { + initLatch.await() runCatching { innerRoom.fetchMembers() }