Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 0abdbffe1f
commit cc0e58365e

@ -1182,7 +1182,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
NSMutableArray<NSString *> *attachmentIds = [NSMutableArray new]; NSMutableArray<NSString *> *attachmentIds = [NSMutableArray new];
for (NSString *attachmentId in outgoingMessage.attachmentIds) { for (NSString *attachmentId in outgoingMessage.attachmentIds) {
TSAttachmentStream *_Nullable outgoingAttachment = TSAttachmentStream *_Nullable outgoingAttachment =
[TSAttachmentStream fetchObjectWithUniqueID:attachmentId]; [TSAttachmentStream fetchObjectWithUniqueID:attachmentId transaction:transaction];
OWSAssert(outgoingAttachment); OWSAssert(outgoingAttachment);
if (!outgoingAttachment) { if (!outgoingAttachment) {
DDLogError(@"%@ Couldn't load outgoing attachment for message sent to self.", self.logTag); DDLogError(@"%@ Couldn't load outgoing attachment for message sent to self.", self.logTag);

Loading…
Cancel
Save