Respond to CR.

pull/1/head
Matthew Chen 6 years ago
parent 0a6d54e8b1
commit 7624b01d1b

@ -185,8 +185,7 @@ void AssertIsOnSendingQueue()
[self.dbConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
for (TSAttachment *attachment in [self.message attachmentsWithTransaction:transaction]) {
if (![attachment isKindOfClass:[TSAttachmentStream class]]) {
error = OWSErrorWithCodeDescription(
OWSErrorCodeMessageHasInvalidAttachments, @"Message with missing attachments cannot be sent.");
error = OWSErrorMakeFailedToSendOutgoingMessageError();
break;
}

@ -51,7 +51,6 @@ typedef NS_ENUM(NSInteger, OWSErrorCode) {
OWSErrorCodeProfileUpdateFailed = 777424,
OWSErrorCodeAvatarWriteFailed = 777425,
OWSErrorCodeAvatarUploadFailed = 777426,
OWSErrorCodeMessageHasInvalidAttachments,
};
extern NSString *const OWSErrorRecipientIdentifierKey;

Loading…
Cancel
Save