From ef9e2e3960234edd7fee1cc8610492b53726746e Mon Sep 17 00:00:00 2001 From: Jorge Martin Espinosa Date: Fri, 6 Mar 2026 16:13:13 +0100 Subject: [PATCH] Fix read receipts not appearing in threaded timelines (#6297) --- .../android/libraries/matrix/impl/room/JoinedRustRoom.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/JoinedRustRoom.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/JoinedRustRoom.kt index bb58054998..dded213d4c 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/JoinedRustRoom.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/JoinedRustRoom.kt @@ -229,8 +229,11 @@ class JoinedRustRoom( is CreateTimelineParams.Threaded -> DateDividerMode.DAILY } - // Track read receipts only for focused timeline for performance optimization - val trackReadReceipts = createTimelineParams is CreateTimelineParams.Focused + // Track read receipts only for focused and threaded timelines for performance optimization + val trackReadReceipts = when (createTimelineParams) { + is CreateTimelineParams.Focused, is CreateTimelineParams.Threaded -> true + is CreateTimelineParams.MediaOnly, is CreateTimelineParams.MediaOnlyFocused, CreateTimelineParams.PinnedOnly -> false + } runCatchingExceptions { innerRoom.timelineWithConfiguration(