Skip to content

Commit

Permalink
Merge branch 'release/1.8.10/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Mar 31, 2022
2 parents 751fe14 + 8524fdf commit 9735459
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## Changes in 1.8.10 (2022-03-31)

🐛 Bugfixes

- Message Composer: Fix a crash when sending a photo using the camera. ([#5951](https://github.com/vector-im/element-ios/issues/5951))


## Changes in 1.8.9 (2022-03-28)

🙌 Improvements
Expand Down
4 changes: 2 additions & 2 deletions Config/AppVersion.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
//

// Version
MARKETING_VERSION = 1.8.9
CURRENT_PROJECT_VERSION = 1.8.9
MARKETING_VERSION = 1.8.10
CURRENT_PROJECT_VERSION = 1.8.10
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 820f04e07aa252459ecfa88d04da729daca4fcbb

COCOAPODS: 1.11.3
COCOAPODS: 1.11.2
5 changes: 3 additions & 2 deletions Riot/Modules/Room/RoomViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7154,16 +7154,17 @@ - (void)cameraPresenterDidCancel:(CameraPresenter *)cameraPresenter
self.cameraPresenter = nil;
}

- (void)cameraPresenter:(CameraPresenter *)cameraPresenter didSelectImageData:(NSData *)imageData withUTI:(MXKUTI *)uti
- (void)cameraPresenter:(CameraPresenter *)cameraPresenter didSelectImage:(UIImage *)image
{
[cameraPresenter dismissWithAnimated:YES completion:nil];
self.cameraPresenter = nil;

RoomInputToolbarView *roomInputToolbarView = [self inputToolbarViewAsRoomInputToolbarView];
if (roomInputToolbarView)
{
NSData *imageData = UIImageJPEGRepresentation(image, 1.0);
[roomInputToolbarView sendSelectedImage:imageData
withMimeType:uti.mimeType
withMimeType:MXKUTI.jpeg.mimeType
andCompressionMode:MediaCompressionHelper.defaultCompressionMode
isPhotoLibraryAsset:NO];
}
Expand Down

0 comments on commit 9735459

Please sign in to comment.