|
|
|
@ -12,6 +12,7 @@
|
|
|
|
|
#import "OWSSignalServiceProtos.pb.h"
|
|
|
|
|
#import "OWSStorage.h"
|
|
|
|
|
#import "OWSSyncConfigurationMessage.h"
|
|
|
|
|
#import "TSAccountManager.h"
|
|
|
|
|
#import "TSContactThread.h"
|
|
|
|
|
#import "TSDatabaseView.h"
|
|
|
|
|
#import "TSIncomingMessage.h"
|
|
|
|
@ -318,6 +319,11 @@ NSString *const OWSReadReceiptManagerAreReadReceiptsEnabled = @"areReadReceiptsE
|
|
|
|
|
self.toLinkedDevicesReadReceiptMap[threadUniqueId] = newReadReceipt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ([message.messageAuthorId isEqualToString:[TSAccountManager localNumber]]) {
|
|
|
|
|
DDLogVerbose(@"%@ Ignoring read receipt for self-sender.", self.logTag);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ([self areReadReceiptsEnabled]) {
|
|
|
|
|
DDLogVerbose(@"%@ Enqueuing read receipt for sender.", self.logTag);
|
|
|
|
|
NSMutableSet<NSNumber *> *_Nullable timestamps = self.toSenderReadReceiptMap[messageAuthorId];
|
|
|
|
|