mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add "reply in thread" timeline item action menu entry.
This commit is contained in:
committed by
Stefan Ceriu
parent
09779a4e12
commit
3ef479305a
@@ -16,6 +16,7 @@ struct TimelineItemMenuActionProvider {
|
||||
let pinnedEventIDs: Set<String>
|
||||
let isDM: Bool
|
||||
let isViewSourceEnabled: Bool
|
||||
let areThreadsEnabled: Bool
|
||||
let timelineKind: TimelineKind
|
||||
let emojiProvider: EmojiProviderProtocol
|
||||
|
||||
@@ -52,6 +53,10 @@ struct TimelineItemMenuActionProvider {
|
||||
} else {
|
||||
actions.append(.reply(isThread: false))
|
||||
}
|
||||
|
||||
if areThreadsEnabled, !timelineKind.isThread {
|
||||
actions.append(.replyInThread)
|
||||
}
|
||||
}
|
||||
|
||||
if item.isForwardable {
|
||||
|
||||
Reference in New Issue
Block a user