From 7ee76bf9ca8726383cb6f4473c22db524b12a196 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Thu, 6 Jan 2022 11:09:08 +1100 Subject: [PATCH] minor fix on debug mode to prevent crashing --- Session/Conversations/ConversationViewItem.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Session/Conversations/ConversationViewItem.m b/Session/Conversations/ConversationViewItem.m index 8012201de..1ce8ec780 100644 --- a/Session/Conversations/ConversationViewItem.m +++ b/Session/Conversations/ConversationViewItem.m @@ -569,13 +569,13 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType) TSAttachment *_Nullable linkPreviewAttachment = [TSAttachment fetchObjectWithUniqueID:message.linkPreview.imageAttachmentId transaction:transaction]; if (!linkPreviewAttachment) { - OWSFailDebug(@"Could not load link preview image attachment."); + OWSLogDebug(@"Could not load link preview image attachment."); } else if (!linkPreviewAttachment.isImage) { - OWSFailDebug(@"Link preview attachment isn't an image."); + OWSLogDebug(@"Link preview attachment isn't an image."); } else if ([linkPreviewAttachment isKindOfClass:[TSAttachmentStream class]]) { TSAttachmentStream *attachmentStream = (TSAttachmentStream *)linkPreviewAttachment; if (!attachmentStream.isValidImage) { - OWSFailDebug(@"Link preview image attachment isn't valid."); + OWSLogDebug(@"Link preview image attachment isn't valid."); } else { self.linkPreviewAttachment = linkPreviewAttachment; }