mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Pinned Events Timeline actions and differentiation (#3182)
This commit is contained in:
@@ -31,6 +31,8 @@ enum TimelineInteractionHandlerAction {
|
||||
|
||||
case displayAudioRecorderPermissionError
|
||||
case displayErrorToast(String)
|
||||
|
||||
case viewInRoomTimeline(eventID: String)
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@@ -176,6 +178,9 @@ class TimelineInteractionHandler {
|
||||
case .unpin:
|
||||
guard let eventID = itemID.eventID else { return }
|
||||
Task { await timelineController.unpin(eventID: eventID) }
|
||||
case .viewInRoomTimeline:
|
||||
guard let eventID = itemID.eventID else { return }
|
||||
actionsSubject.send(.viewInRoomTimeline(eventID: eventID))
|
||||
}
|
||||
|
||||
if action.switchToDefaultComposer {
|
||||
|
||||
Reference in New Issue
Block a user