Merge branch 'charlesmchen/sendToSelfVsIncompleteOperation'

pull/1/head
Matthew Chen 8 years ago
commit 289d0df064

@ -115,7 +115,7 @@ NSUInteger const OWSSendMessageOperationMaxRetries = 4;
_successHandler = ^{ _successHandler = ^{
typeof(self) strongSelf = weakSelf; typeof(self) strongSelf = weakSelf;
if (!strongSelf) { if (!strongSelf) {
OWSAssert(NO); OWSCAssert(NO);
return; return;
} }
DDLogDebug(@"%@ succeeded.", strongSelf.tag); DDLogDebug(@"%@ succeeded.", strongSelf.tag);
@ -126,7 +126,7 @@ NSUInteger const OWSSendMessageOperationMaxRetries = 4;
_failureHandler = ^(NSError *_Nonnull error) { _failureHandler = ^(NSError *_Nonnull error) {
typeof(self) strongSelf = weakSelf; typeof(self) strongSelf = weakSelf;
if (!strongSelf) { if (!strongSelf) {
OWSAssert(NO); OWSCAssert(NO);
return; return;
} }
@ -495,6 +495,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
&& ![message isKindOfClass:[OWSOutgoingSyncMessage class]]) { && ![message isKindOfClass:[OWSOutgoingSyncMessage class]]) {
[self handleSendToMyself:message]; [self handleSendToMyself:message];
successHandler();
return; return;
} }

Loading…
Cancel
Save