|
|
@ -4,6 +4,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#import "OWSOutgoingReceiptManager.h"
|
|
|
|
#import "OWSOutgoingReceiptManager.h"
|
|
|
|
#import "AppReadiness.h"
|
|
|
|
#import "AppReadiness.h"
|
|
|
|
|
|
|
|
#import "OWSError.h"
|
|
|
|
#import "OWSMessageSender.h"
|
|
|
|
#import "OWSMessageSender.h"
|
|
|
|
#import "OWSPrimaryStorage.h"
|
|
|
|
#import "OWSPrimaryStorage.h"
|
|
|
|
#import "OWSReceiptsForSenderMessage.h"
|
|
|
|
#import "OWSReceiptsForSenderMessage.h"
|
|
|
@ -202,6 +203,11 @@ NSString *const kOutgoingReadReceiptManagerCollection = @"kOutgoingReadReceiptMa
|
|
|
|
failure:^(NSError *error) {
|
|
|
|
failure:^(NSError *error) {
|
|
|
|
OWSLogError(@"Failed to send %@ receipts to sender with error: %@", receiptName, error);
|
|
|
|
OWSLogError(@"Failed to send %@ receipts to sender with error: %@", receiptName, error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (error.domain == OWSSignalServiceKitErrorDomain
|
|
|
|
|
|
|
|
&& error.code == OWSErrorCodeNoSuchSignalRecipient) {
|
|
|
|
|
|
|
|
[self dequeueReceiptsWithRecipientId:recipientId timestamps:timestamps receiptType:receiptType];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resolve(error);
|
|
|
|
resolve(error);
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|