mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Send all receipts through the active timeline and remove unecessary making of a room as read (already handled)
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user