trust matching first known key, regardless of how old it is

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent 1603e8bfbf
commit 4a73ab2851

@ -314,6 +314,11 @@ NSString *const kNSNotificationName_IdentityStateDidChange = @"kNSNotificationNa
return NO;
}
if ([recipientIdentity isFirstKnownKey]) {
DDLogDebug(@"%@ trusting first known key for recipient: %@", self.tag, recipientIdentity.recipientId);
return YES;
}
switch (recipientIdentity.verificationState) {
case OWSVerificationStateDefault: {
BOOL isNew = (fabs([recipientIdentity.createdAt timeIntervalSinceNow])

Loading…
Cancel
Save