mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 03:06:14 +00:00
Only track read receipts on message-like events (#7361)
Ask the SDK to track receipts on message-like events only, for the live timeline and for the focused and threaded ones, so all three agree. The disabled case for the media and pinned-event timelines is unchanged. This matches the behaviour on Element X iOS. The SDK attaches the receipt to the preceding event rather than the next one, which is the placement its API offers.
This commit is contained in:
+1
-1
@@ -265,7 +265,7 @@ class JoinedRustRoom(
|
||||
filter = filter,
|
||||
internalIdPrefix = internalIdPrefix,
|
||||
dateDividerMode = dateDividerMode,
|
||||
trackReadReceipts = if (trackReadReceipts) TimelineReadReceiptTracking.ALL_EVENTS else TimelineReadReceiptTracking.DISABLED,
|
||||
trackReadReceipts = if (trackReadReceipts) TimelineReadReceiptTracking.MESSAGE_LIKE_EVENTS else TimelineReadReceiptTracking.DISABLED,
|
||||
reportUtds = true,
|
||||
)
|
||||
).let { innerTimeline ->
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ class RustRoomFactory(
|
||||
filter = timelineFilter?.let(TimelineFilter::EventFilter) ?: TimelineFilter.All,
|
||||
internalIdPrefix = "live",
|
||||
dateDividerMode = DateDividerMode.DAILY,
|
||||
trackReadReceipts = TimelineReadReceiptTracking.ALL_EVENTS,
|
||||
trackReadReceipts = TimelineReadReceiptTracking.MESSAGE_LIKE_EVENTS,
|
||||
reportUtds = true,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user