mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
954 B
Objective-C
36 lines
954 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWSVerificationStateChangeMessage.h"
|
|
#import "OWSDisappearingMessagesConfiguration.h"
|
|
#import <SessionProtocolKit/SessionProtocolKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@implementation OWSVerificationStateChangeMessage
|
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp
|
|
thread:(TSThread *)thread
|
|
recipientId:(NSString *)recipientId
|
|
verificationState:(OWSVerificationState)verificationState
|
|
isLocalChange:(BOOL)isLocalChange
|
|
{
|
|
OWSAssertDebug(recipientId.length > 0);
|
|
|
|
self = [super initWithTimestamp:timestamp inThread:thread messageType:TSInfoMessageVerificationStateChange];
|
|
if (!self) {
|
|
return self;
|
|
}
|
|
|
|
_recipientId = recipientId;
|
|
_verificationState = verificationState;
|
|
_isLocalChange = isLocalChange;
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|