Fix regression

This commit is contained in:
Niels Andriesse 2019-09-06 12:04:28 +10:00
parent 1e0f820eb8
commit fdb624369c
2 changed files with 3 additions and 1 deletions

View file

@ -1978,6 +1978,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
} }
} }
/*
if (message.linkPreview.imageAttachmentId != nil) { if (message.linkPreview.imageAttachmentId != nil) {
TSAttachment *attachment = TSAttachment *attachment =
[TSAttachment fetchObjectWithUniqueID:message.linkPreview.imageAttachmentId transaction:transaction]; [TSAttachment fetchObjectWithUniqueID:message.linkPreview.imageAttachmentId transaction:transaction];
@ -1987,6 +1988,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
OWSFailDebug(@"unexpected attachment: %@", attachment); OWSFailDebug(@"unexpected attachment: %@", attachment);
} }
} }
*/
// All outgoing messages should be saved at the time they are enqueued. // All outgoing messages should be saved at the time they are enqueued.
[message saveWithTransaction:transaction]; [message saveWithTransaction:transaction];

View file

@ -68,7 +68,7 @@ NSString *const OWSOperationKeyIsFinished = @"isFinished";
// Don't proceed if dependency failed - surface the dependency's error. // Don't proceed if dependency failed - surface the dependency's error.
NSError *_Nullable dependencyError = dependentOperation.failingError; NSError *_Nullable dependencyError = dependentOperation.failingError;
if (dependencyError != nil) { if (dependencyError != nil) {
// return dependencyError; return dependencyError;
} }
} }