From d32be1f7288c2b785d50cb67d88811179bc0f1c4 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 4 Jul 2025 13:26:51 +0300 Subject: [PATCH] Send all receipts through the active timeline and remove unecessary making of a room as read (already handled) --- .../TimelineController/TimelineController.swift | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ElementX/Sources/Services/Timeline/TimelineController/TimelineController.swift b/ElementX/Sources/Services/Timeline/TimelineController/TimelineController.swift index fa975d7eb..37fe2192c 100644 --- a/ElementX/Sources/Services/Timeline/TimelineController/TimelineController.swift +++ b/ElementX/Sources/Services/Timeline/TimelineController/TimelineController.swift @@ -124,16 +124,11 @@ class TimelineController: TimelineControllerProtocol { func sendReadReceipt(for itemID: TimelineItemIdentifier) async { let receiptType: MatrixRustSDK.ReceiptType = appSettings.sharePresence ? .read : .readPrivate - // Mark the whole room as read if it's the last timeline item - if timelineItems.last?.id == itemID { - _ = await roomProxy.markAsRead(receiptType: receiptType) - } else { - guard let eventID = itemID.eventID else { - return - } - - _ = await activeTimeline.sendReadReceipt(for: eventID, type: receiptType) + guard let eventID = itemID.eventID else { + return } + + _ = await activeTimeline.sendReadReceipt(for: eventID, type: receiptType) } func processItemAppearance(_ itemID: TimelineItemIdentifier) async {