|
|
@ -8,6 +8,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NSString *const OWSReadReceiptsProcessorMarkedMessageAsReadNotification =
|
|
|
|
|
|
|
|
@"OWSReadReceiptsProcessorMarkedMessageAsReadNotification";
|
|
|
|
|
|
|
|
|
|
|
|
@interface OWSReadReceiptsProcessor ()
|
|
|
|
@interface OWSReadReceiptsProcessor ()
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) NSArray<OWSReadReceipt *> *readReceipts;
|
|
|
|
@property (nonatomic, readonly) NSArray<OWSReadReceipt *> *readReceipts;
|
|
|
@ -74,6 +77,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
[message markAsReadFromReadReceipt];
|
|
|
|
[message markAsReadFromReadReceipt];
|
|
|
|
// If it was previously saved, no need to keep it around any longer.
|
|
|
|
// If it was previously saved, no need to keep it around any longer.
|
|
|
|
[readReceipt remove];
|
|
|
|
[readReceipt remove];
|
|
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter]
|
|
|
|
|
|
|
|
postNotificationName:OWSReadReceiptsProcessorMarkedMessageAsReadNotification
|
|
|
|
|
|
|
|
object:message];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
DDLogDebug(@"%@ Received read receipt for an unkown message. Saving it for later.", self.tag);
|
|
|
|
DDLogDebug(@"%@ Received read receipt for an unkown message. Saving it for later.", self.tag);
|
|
|
|
[readReceipt save];
|
|
|
|
[readReceipt save];
|
|
|
|