|
|
@ -7,6 +7,7 @@
|
|
|
|
#import "OWSDisappearingMessagesConfiguration.h"
|
|
|
|
#import "OWSDisappearingMessagesConfiguration.h"
|
|
|
|
#import "OWSDisappearingMessagesJob.h"
|
|
|
|
#import "OWSDisappearingMessagesJob.h"
|
|
|
|
#import "OWSReadReceiptManager.h"
|
|
|
|
#import "OWSReadReceiptManager.h"
|
|
|
|
|
|
|
|
#import "TSAttachmentPointer.h"
|
|
|
|
#import "TSContactThread.h"
|
|
|
|
#import "TSContactThread.h"
|
|
|
|
#import "TSDatabaseSecondaryIndexes.h"
|
|
|
|
#import "TSDatabaseSecondaryIndexes.h"
|
|
|
|
#import "TSGroupThread.h"
|
|
|
|
#import "TSGroupThread.h"
|
|
|
@ -126,6 +127,18 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
return OWSInteractionType_IncomingMessage;
|
|
|
|
return OWSInteractionType_IncomingMessage;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)shouldStartExpireTimer:(YapDatabaseReadTransaction *)transaction
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
for (NSString *attachmentId in self.attachmentIds) {
|
|
|
|
|
|
|
|
TSAttachment *_Nullable attachment =
|
|
|
|
|
|
|
|
[TSAttachment fetchObjectWithUniqueID:attachmentId transaction:transaction];
|
|
|
|
|
|
|
|
if ([attachment isKindOfClass:[TSAttachmentPointer class]]) {
|
|
|
|
|
|
|
|
return NO;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return self.isExpiringMessage;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#pragma mark - OWSReadTracking
|
|
|
|
#pragma mark - OWSReadTracking
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)shouldAffectUnreadCounts
|
|
|
|
- (BOOL)shouldAffectUnreadCounts
|
|
|
|