mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Don't display quality selector if there is only one
This commit is contained in:
parent
9e32dab3cc
commit
a9798ac925
@ -3548,6 +3548,7 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
|
||||
})))
|
||||
}
|
||||
|
||||
if videoQualityState.available.count > 1 {
|
||||
for quality in videoQualityState.available {
|
||||
let isSelected = videoQualityState.preferred == .quality(quality)
|
||||
let qualityTitle: String
|
||||
@ -3583,6 +3584,7 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
|
||||
})))
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if let (message, maybeFile, _) = strongSelf.contentInfo(), let file = maybeFile, !message.isCopyProtected() && !item.peerIsCopyProtected && message.paidContent == nil {
|
||||
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.Gallery_MenuSaveToGallery, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Download"), color: theme.actionSheet.primaryTextColor) }, action: { c, _ in
|
||||
|
Loading…
x
Reference in New Issue
Block a user