Change image resizing/quality behavior, preferring smaller images in the common case.
This commit is contained in:
parent
55aa5eef6c
commit
84061cca9f
|
@ -2664,7 +2664,7 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
|
|||
SignalAttachment *attachment =
|
||||
[SignalAttachment attachmentWithDataSource:dataSource
|
||||
dataUTI:dataUTI
|
||||
attachmentQuality:TSAttachmentQualityCompact];
|
||||
attachmentQuality:TSAttachmentQualityMedium];
|
||||
[self dismissViewControllerAnimated:YES
|
||||
completion:^{
|
||||
OWSAssert([NSThread isMainThread]);
|
||||
|
|
|
@ -66,14 +66,17 @@ public enum TSImageQuality: UInt {
|
|||
@objc
|
||||
public enum TSAttachmentQuality: UInt {
|
||||
case original
|
||||
case medium
|
||||
case compact
|
||||
|
||||
func imageQuality() -> TSImageQuality {
|
||||
switch self {
|
||||
case .original:
|
||||
return .original
|
||||
case .compact:
|
||||
case .medium:
|
||||
return .mediumHigh
|
||||
case .compact:
|
||||
return .medium
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue