Bug Fix - Failed to send photos which are not stored on the local device

and must be downloaded from iCloud.

#1654
This commit is contained in:
Giom Foret
2017-11-17 14:33:24 +01:00
parent 2ad98eedf7
commit b1bf11869d
5 changed files with 181 additions and 79 deletions
+3 -2
View File
@@ -3633,10 +3633,11 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
}
}
- (void)mediaPickerController:(MediaPickerViewController *)mediaPickerController didSelectImage:(UIImage*)image withURL:(NSURL *)imageURL
- (void)mediaPickerController:(MediaPickerViewController *)mediaPickerController didSelectImage:(NSData*)imageData withMimeType:(NSString *)mimetype isPhotoLibraryAsset:(BOOL)isPhotoLibraryAsset
{
[self dismissMediaPicker];
newAvatarImage = image;
newAvatarImage = [UIImage imageWithData:imageData];
[self.tableView reloadData];
}