Add "reply in thread" timeline item action menu entry.

This commit is contained in:
Stefan Ceriu
2025-06-10 14:00:24 +03:00
committed by Stefan Ceriu
parent 09779a4e12
commit 3ef479305a
52 changed files with 109 additions and 88 deletions
@@ -24,6 +24,7 @@ enum TimelineInteractionHandlerAction {
case displayErrorToast(String)
case viewInRoomTimeline(eventID: String)
case displayThread(itemID: TimelineItemIdentifier)
}
/// The interaction handler groups logic for dealing with various actions the user can take on a timeline's
@@ -162,6 +163,8 @@ class TimelineInteractionHandler {
let replyDetails = TimelineItemReplyDetails.loaded(sender: eventTimelineItem.sender, eventID: eventID, eventContent: replyInfo.type)
actionsSubject.send(.composer(action: .setMode(mode: .reply(eventID: eventID, replyDetails: replyDetails, isThread: replyInfo.isThread))))
case .replyInThread:
actionsSubject.send(.displayThread(itemID: eventTimelineItem.id))
case .forward(let itemID):
actionsSubject.send(.displayMessageForwarding(itemID: itemID))
case .viewSource: