fix scrollup too long in chatroom

This commit is contained in:
Danmei Chen 2019-02-21 14:55:08 +01:00
parent 0082544cfa
commit 52f9dcf40e

View file

@ -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];