Add "Confirm image size before sending" setting.

Use this when sending images.
This commit is contained in:
Doug
2021-07-28 14:14:34 +01:00
parent 814145050d
commit abd1bd2a41
7 changed files with 67 additions and 7 deletions
@@ -323,8 +323,8 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode)
dispatch_group_leave(requestsGroup);
}
// Only prompt for image resize only if all items are images
if (areAllAttachmentsImages)
// Only prompt for image resize if prompt is requested and all items are images
if (RiotSettings.shared.roomInputToolbarCompressionMode == MXKRoomInputToolbarCompressionModePrompt && areAllAttachmentsImages)
{
if ([self areAttachmentsFullyLoaded])
{