Respond to CR.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-06-08 10:34:32 -04:00
parent fdd172bda3
commit 841271dc6c
2 changed files with 2 additions and 5 deletions

View File

@ -15,10 +15,9 @@ NS_ASSUME_NONNULL_BEGIN
verificationState:(OWSVerificationState)verificationState
isLocalChange:(BOOL)isLocalChange
{
OWSAssert(recipientId.length > 0)
OWSAssert(recipientId.length > 0);
self
= [super initWithTimestamp:timestamp inThread:thread messageType:TSInfoMessageVerificationStateChange];
self = [super initWithTimestamp:timestamp inThread:thread messageType:TSInfoMessageVerificationStateChange];
if (!self) {
return self;
}

View File

@ -192,8 +192,6 @@ NSString *const kNSNotificationName_IdentityStateDidChange = @"kNSNotificationNa
// Cancel any pending verification state sync messages for this recipient.
[self clearSyncMessageForRecipientId:recipientId];
// TODO: This may be redundant with the "safety number changes"
// messages.
if (existingIdentity.verificationState != verificationState) {
[self saveChangeMessagesForRecipientId:recipientId
verificationState:verificationState