From 52f9dcf40e1026fed1b3dcd6fd327930558e0624 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Thu, 21 Feb 2019 14:55:08 +0100 Subject: [PATCH] fix scrollup too long in chatroom --- Classes/LinphoneUI/UIChatBubblePhotoCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index db786add4..284e828c9 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -236,7 +236,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100; PHAsset *asset = [assets firstObject]; if (!asset) [self loadPlaceholder]; - else if (asset.mediaType == type) + else if (asset.mediaType != type) img = nil; if (img) [self loadImageAsset:asset image:img];