2017-04-10 02:53:45 +02:00
|
|
|
//
|
2018-10-03 23:41:43 +02:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-04-10 02:53:45 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#import "OWSUnknownContactBlockOfferMessage.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface OWSUnknownContactBlockOfferMessage ()
|
|
|
|
|
|
|
|
@property (nonatomic) NSString *contactId;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
|
2018-10-03 23:41:43 +02:00
|
|
|
// This is a deprecated class, we're keeping it around to avoid YapDB serialization errors
|
|
|
|
// TODO - remove this class, clean up existing instances, ensure any missed ones don't explode (UnknownDBObject)
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wdeprecated-implementations"
|
2017-04-10 02:53:45 +02:00
|
|
|
@implementation OWSUnknownContactBlockOfferMessage
|
2018-10-03 23:41:43 +02:00
|
|
|
#pragma clang diagnostic pop
|
2017-04-10 02:53:45 +02:00
|
|
|
|
2017-05-25 18:17:45 +02:00
|
|
|
- (BOOL)shouldUseReceiptDateForSorting
|
2017-04-10 02:53:45 +02:00
|
|
|
{
|
2017-05-25 18:17:45 +02:00
|
|
|
// Use the timestamp, not the "received at" timestamp to sort,
|
|
|
|
// since we're creating these interactions after the fact and back-dating them.
|
|
|
|
return NO;
|
2017-04-10 02:53:45 +02:00
|
|
|
}
|
|
|
|
|
2017-05-23 16:12:04 +02:00
|
|
|
- (BOOL)isDynamicInteraction
|
|
|
|
{
|
|
|
|
return YES;
|
|
|
|
}
|
|
|
|
|
2017-04-10 02:53:45 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|