Fix sending a video selected from a document picker.

This commit is contained in:
Doug
2021-07-08 17:41:55 +01:00
parent 7f98750b54
commit aa5b71b97b
@@ -887,8 +887,10 @@ const CGFloat kTypingCellHeight = 24;
success:(void (^)(NSString *eventId))success
failure:(void (^)(NSError *error))failure
{
AVURLAsset *videoAsset = [AVURLAsset assetWithURL:videoLocalURL];
UIImage *videoThumbnail = [MXKVideoThumbnailGenerator.shared generateThumbnailFrom:videoLocalURL];
[self sendVideo:videoLocalURL withThumbnail:videoThumbnail success:success failure:failure];
[self sendVideo:videoAsset withThumbnail:videoThumbnail success:success failure:failure];
}
- (void)acceptVerificationRequestForEventId:(NSString*)eventId success:(void(^)(void))success failure:(void(^)(NSError*))failure