|
|
|
|
@ -36,8 +36,6 @@ static const NSUInteger OWSMessageSchemaVersion = 3;
|
|
|
|
|
*/
|
|
|
|
|
@property (nonatomic, readonly) NSUInteger schemaVersion;
|
|
|
|
|
|
|
|
|
|
@property (atomic) TSGroupMetaMessage groupMetaMessage;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
|
@ -93,23 +91,6 @@ static const NSUInteger OWSMessageSchemaVersion = 3;
|
|
|
|
|
attachmentIds:(NSArray<NSString *> *)attachmentIds
|
|
|
|
|
expiresInSeconds:(uint32_t)expiresInSeconds
|
|
|
|
|
expireStartedAt:(uint64_t)expireStartedAt
|
|
|
|
|
{
|
|
|
|
|
return [self initWithTimestamp:timestamp
|
|
|
|
|
inThread:thread
|
|
|
|
|
messageBody:body
|
|
|
|
|
attachmentIds:attachmentIds
|
|
|
|
|
expiresInSeconds:expiresInSeconds
|
|
|
|
|
expireStartedAt:expireStartedAt
|
|
|
|
|
groupMetaMessage:TSGroupMessageNone];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp
|
|
|
|
|
inThread:(nullable TSThread *)thread
|
|
|
|
|
messageBody:(nullable NSString *)body
|
|
|
|
|
attachmentIds:(NSArray<NSString *> *)attachmentIds
|
|
|
|
|
expiresInSeconds:(uint32_t)expiresInSeconds
|
|
|
|
|
expireStartedAt:(uint64_t)expireStartedAt
|
|
|
|
|
groupMetaMessage:(TSGroupMetaMessage)groupMetaMessage
|
|
|
|
|
{
|
|
|
|
|
self = [super initWithTimestamp:timestamp inThread:thread];
|
|
|
|
|
|
|
|
|
|
@ -125,7 +106,6 @@ static const NSUInteger OWSMessageSchemaVersion = 3;
|
|
|
|
|
_expireStartedAt = expireStartedAt;
|
|
|
|
|
[self updateExpiresAt];
|
|
|
|
|
_receivedAtDate = [NSDate date];
|
|
|
|
|
_groupMetaMessage = groupMetaMessage;
|
|
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|