Respond to CR.
This commit is contained in:
parent
1a23186ec4
commit
fbfda5b9db
|
@ -63,7 +63,7 @@ NSError *SSKEnsureError(NSError *_Nullable error, OWSErrorCode fallbackCode, NSS
|
|||
if (error) {
|
||||
return error;
|
||||
}
|
||||
return OWSErrorWithCodeDescription(fallbackCode, fallbackErrorDescription);
|
||||
OWSFailDebug(@"Using fallback error.") return OWSErrorWithCodeDescription(fallbackCode, fallbackErrorDescription);
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
@ -534,7 +534,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
|
|||
OWSAssertDebug(recipientContactId.length > 0);
|
||||
if ([self.blockingManager isRecipientIdBlocked:recipientContactId]) {
|
||||
OWSLogInfo(@"skipping 1:1 send to blocked contact: %@", recipientContactId);
|
||||
NSError *error = OWSErrorMakeMessageSendFailedToBlockListError();
|
||||
NSError *error = OWSErrorMakeMessageSendFailedDueToBlockListError();
|
||||
[error setIsRetryable:NO];
|
||||
*errorHandle = error;
|
||||
return nil;
|
||||
|
|
|
@ -59,7 +59,7 @@ extern NSError *OWSErrorMakeFailedToSendOutgoingMessageError(void);
|
|||
extern NSError *OWSErrorMakeNoSuchSignalRecipientError(void);
|
||||
extern NSError *OWSErrorMakeAssertionError(NSString *description);
|
||||
extern NSError *OWSErrorMakeMessageSendDisabledDueToPreKeyUpdateFailuresError(void);
|
||||
extern NSError *OWSErrorMakeMessageSendFailedToBlockListError(void);
|
||||
extern NSError *OWSErrorMakeMessageSendFailedDueToBlockListError(void);
|
||||
extern NSError *OWSErrorMakeWriteAttachmentDataError(void);
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -57,7 +57,7 @@ NSError *OWSErrorMakeMessageSendDisabledDueToPreKeyUpdateFailuresError()
|
|||
@"Error message indicating that message send is disabled due to prekey update failures"));
|
||||
}
|
||||
|
||||
NSError *OWSErrorMakeMessageSendFailedToBlockListError()
|
||||
NSError *OWSErrorMakeMessageSendFailedDueToBlockListError()
|
||||
{
|
||||
return OWSErrorWithCodeDescription(OWSErrorCodeMessageSendFailedToBlockList,
|
||||
NSLocalizedString(@"ERROR_DESCRIPTION_MESSAGE_SEND_FAILED_DUE_TO_BLOCK_LIST",
|
||||
|
|
Loading…
Reference in New Issue