Send read receipts as messages are displayed. (#1426)

This commit is contained in:
Doug
2023-08-01 11:53:02 +01:00
committed by GitHub
parent f06e063f03
commit 1609ae2036
11 changed files with 234 additions and 40 deletions
@@ -59,8 +59,7 @@ enum RoomScreenViewAction {
case toggleReaction(key: String, itemID: TimelineItemIdentifier)
case cancelReply
case cancelEdit
/// Mark the entire room as read - this is heavy handed as a starting point for now.
case markRoomAsRead
case sendReadReceiptIfNeeded(TimelineItemIdentifier)
case paginateBackwards
case timelineItemMenu(itemID: TimelineItemIdentifier)
@@ -85,7 +84,7 @@ enum RoomScreenViewAction {
}
struct RoomScreenViewState: BindableState {
var roomId: String
var roomID: String
var roomTitle = ""
var roomAvatarURL: URL?
var members: [String: RoomMemberState] = [:]