mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 00:29:21 +00:00
fix UIChatBUbblePhotoCell when no first image loaded
This commit is contained in:
parent
6e1ad09d58
commit
bda4e22278
1 changed files with 1 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue