From bda4e2227836be4b94d08b70137715b56c05615b Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Fri, 2 Nov 2018 11:15:55 +0100 Subject: [PATCH] fix UIChatBUbblePhotoCell when no first image loaded --- Classes/LinphoneUI/UIChatBubbleTextCell.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.m b/Classes/LinphoneUI/UIChatBubbleTextCell.m index 0346c452d..06179137e 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -506,8 +506,7 @@ static const CGFloat CELL_MESSAGE_Y_MARGIN = 44; // 44; else assets = [PHAsset fetchAssetsWithLocalIdentifiers:[NSArray arrayWithObject:localVideo] options:nil]; if (![assets firstObject]) { - // TODO size is not correct - size = CGSizeMake(-200, -200); + size = CGSizeMake(0, CELL_MESSAGE_Y_MARGIN + textSize.height); } else { PHAsset *asset = [assets firstObject]; CGSize originalImageSize = CGSizeMake([asset pixelWidth], [asset pixelHeight]);