mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix “send to self operations never complete” issue.
// FREEBIE
This commit is contained in:
parent
d31cfe6fd6
commit
62d52ce9a0
1 changed files with 3 additions and 2 deletions
|
@ -115,7 +115,7 @@ NSUInteger const OWSSendMessageOperationMaxRetries = 4;
|
|||
_successHandler = ^{
|
||||
typeof(self) strongSelf = weakSelf;
|
||||
if (!strongSelf) {
|
||||
OWSAssert(NO);
|
||||
OWSCAssert(NO);
|
||||
return;
|
||||
}
|
||||
DDLogDebug(@"%@ succeeded.", strongSelf.tag);
|
||||
|
@ -126,7 +126,7 @@ NSUInteger const OWSSendMessageOperationMaxRetries = 4;
|
|||
_failureHandler = ^(NSError *_Nonnull error) {
|
||||
typeof(self) strongSelf = weakSelf;
|
||||
if (!strongSelf) {
|
||||
OWSAssert(NO);
|
||||
OWSCAssert(NO);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -495,6 +495,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
|
|||
&& ![message isKindOfClass:[OWSOutgoingSyncMessage class]]) {
|
||||
|
||||
[self handleSendToMyself:message];
|
||||
successHandler();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue