fix onImageClick

This commit is contained in:
Danmei Chen 2019-01-24 15:03:46 +01:00
parent dc1353ea65
commit d84809f1ce

View file

@ -105,7 +105,6 @@
[_messageImageView setAsset:asset];
[_messageImageView stopLoading];
_messageImageView.hidden = YES;
//_imageGestureRecognizer.enabled = YES;
_finalImage.hidden = NO;
_fileView.hidden = YES;
[self layoutSubviews];
@ -198,7 +197,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100;
if ([type isEqualToString:@"video"]) {
UIImage* image = [UIChatBubbleTextCell getImageFromVideoUrl:[VIEW(ChatConversationView) getICloudFileUrl:localFile]];
[self loadImageAsset:nil image:image];
_imageGestureRecognizer.enabled = YES;
_imageGestureRecognizer.enabled = NO;
} else if ([localFile hasSuffix:@"JPG"] || [localFile hasSuffix:@"PNG"] || [localFile hasSuffix:@"jpg"] || [localFile hasSuffix:@"png"]) {
NSData *data = [NSData dataWithContentsOfURL:[VIEW(ChatConversationView) getICloudFileUrl:localFile]];
UIImage *image = [[UIImage alloc] initWithData:data];