only process attachments if they exist

pull/1/head
Michael Kirk 7 years ago
parent 18766280f6
commit 4a70f8dc0f

@ -175,6 +175,7 @@ NS_ASSUME_NONNULL_BEGIN
[self.readReceiptManager applyEarlyReadReceiptsForOutgoingMessageFromLinkedDevice:outgoingMessage [self.readReceiptManager applyEarlyReadReceiptsForOutgoingMessageFromLinkedDevice:outgoingMessage
transaction:transaction]; transaction:transaction];
if (outgoingMessage.hasAttachments) {
[self.attachmentDownloads [self.attachmentDownloads
downloadAttachmentsForMessage:outgoingMessage downloadAttachmentsForMessage:outgoingMessage
transaction:transaction transaction:transaction
@ -183,6 +184,7 @@ NS_ASSUME_NONNULL_BEGIN
OWSLogError( OWSLogError(
@"failed to fetch transcripts attachments for message: %@", outgoingMessage); @"failed to fetch transcripts attachments for message: %@", outgoingMessage);
}]; }];
}
} }
@end @end

Loading…
Cancel
Save