This commit is contained in:
nielsandriesse 2020-08-19 16:41:25 +10:00
parent 8cbad6c69c
commit 830dcfb4d6
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType)
if (self.hasBodyText && message.linkPreview) {
self.linkPreview = message.linkPreview;
if (message.linkPreview.imageAttachmentId && message.linkPreview.imageAttachmentId.length) {
if (message.linkPreview.imageAttachmentId && message.linkPreview.imageAttachmentId.length > 0) {
TSAttachment *_Nullable linkPreviewAttachment =
[TSAttachment fetchObjectWithUniqueID:message.linkPreview.imageAttachmentId transaction:transaction];
if (!linkPreviewAttachment) {