Limit the share extension to level one quality

This commit is contained in:
Nora Trapp 2021-08-04 11:52:10 -07:00
parent dcad07c212
commit 279b2dada8
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public class AttachmentApprovalViewController: UIPageViewController, UIPageViewC
options.insert(.canToggleViewOnce)
}
if ImageQualityLevel.max != .standard && attachmentApprovalItemCollection.attachmentApprovalItems.filter({ $0.attachment.isValidImage }).count > 0 {
if ImageQualityLevel.max == .high && attachmentApprovalItemCollection.attachmentApprovalItems.filter({ $0.attachment.isValidImage }).count > 0 {
options.insert(.canChangeQualityLevel)
}

View File

@ -47,7 +47,7 @@ public enum ImageQualityLevel: UInt {
// Outside of the main app (like in the share extension)
// we have very tight memory restrictions, and cannot
// allow sending high quality media.
return .standard
return .one
}
}