mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 12:28:29 +00:00
Updates to File Info Bottom Sheet (#5667)
* Updates to File Info Bottom Sheet Removing buttons, changing labels, adding a title * Update the underlying actions rather than fixing it at the screen-level. * Fix the media details sheet height now there's a navigation title. * Record preview snapshots --------- Co-authored-by: Doug <douglase@element.io> Co-authored-by: Element CI <ci@element.io>
This commit is contained in:
+3
-3
@@ -114,7 +114,8 @@ struct TimelineItemMenuActionProvider {
|
||||
}
|
||||
|
||||
if canRedactItem(item) {
|
||||
secondaryActions.append(.redact)
|
||||
let isMedia = if case .media = timelineKind { true } else { false }
|
||||
secondaryActions.append(.redact(isMedia: isMedia))
|
||||
}
|
||||
|
||||
switch timelineKind {
|
||||
@@ -122,8 +123,7 @@ struct TimelineItemMenuActionProvider {
|
||||
actions = actions.filter(\.canAppearInPinnedEventsTimeline)
|
||||
secondaryActions = secondaryActions.filter(\.canAppearInPinnedEventsTimeline)
|
||||
case .media:
|
||||
actions.append(.share)
|
||||
actions.append(.save)
|
||||
actions.append(.downloadMedia)
|
||||
actions = actions.filter(\.canAppearInMediaDetails)
|
||||
secondaryActions = secondaryActions.filter(\.canAppearInMediaDetails)
|
||||
case .live, .detached, .thread:
|
||||
|
||||
Reference in New Issue
Block a user