mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Add comments about memory constraints.
This commit is contained in:
parent
fc75307c54
commit
fc73ee762b
1 changed files with 4 additions and 2 deletions
|
@ -323,8 +323,9 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode)
|
|||
dispatch_group_leave(requestsGroup);
|
||||
}
|
||||
|
||||
// Only prompt for image resize if all items are images and the setting is enabled.
|
||||
if (RiotSettings.shared.showMediaCompressionPrompt && areAllAttachmentsImages)
|
||||
// Only prompt for image resize if all items are images
|
||||
// Ignore showMediaCompressionPrompt setting due to memory constraints with full size images.
|
||||
if (areAllAttachmentsImages)
|
||||
{
|
||||
if ([self areAttachmentsFullyLoaded])
|
||||
{
|
||||
|
@ -1157,6 +1158,7 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode)
|
|||
|
||||
MXWeakify(self);
|
||||
|
||||
// Ignore showMediaCompressionPrompt setting due to memory constraints when encrypting large videos.
|
||||
UIAlertController *compressionPrompt = [MXKTools videoConversionPromptForVideoAsset:videoAsset withCompletion:^(NSString * _Nullable presetName) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
|
|
Loading…
Reference in a new issue