Send all receipts through the active timeline and remove unecessary making of a room as read (already handled)

This commit is contained in:
Stefan Ceriu
2025-07-04 13:26:51 +03:00
committed by Stefan Ceriu
parent 52cdd29fe1
commit d32be1f728
@@ -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 {