diff --git a/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib b/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib index d43a61e8e..a17b05692 100644 --- a/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib +++ b/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib @@ -74,6 +74,41 @@ + + + + + + + + + + + + @@ -136,41 +171,6 @@ - - - - - - - - - - - - diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index e33294a79..c40683f9d 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -105,7 +105,7 @@ [_messageImageView setAsset:asset]; [_messageImageView stopLoading]; _messageImageView.hidden = YES; - _imageGestureRecognizer.enabled = YES; + //_imageGestureRecognizer.enabled = YES; _finalImage.hidden = NO; _fileView.hidden = YES; [self layoutSubviews]; @@ -183,6 +183,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100; // we did not load the image yet, so start doing so if (_messageImageView.image == nil) { [self loadFirstImage:localImage type:PHAssetMediaTypeImage]; + _imageGestureRecognizer.enabled = YES; } } else if (localVideo) { @@ -196,6 +197,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100; NSData *data = [NSData dataWithContentsOfURL:[VIEW(ChatConversationView) getICloudFileUrl:localFile]]; UIImage *image = [[UIImage alloc] initWithData:data]; [self loadImageAsset:nil image:image]; + _imageGestureRecognizer.enabled = YES; } else { NSString *text = [NSString stringWithFormat:@"📎 %@",localFile]; _fileName.text = text;