From 1661e8dc34cac61fccedf99c6200db453973525d Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 16 Jun 2017 12:33:50 -0400 Subject: [PATCH] assume contact in 1:1 thread // FREEBIE --- .../ConversationView/MessagesViewController.m | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m index 239dca45b..c3c95660f 100644 --- a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m +++ b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m @@ -2399,9 +2399,16 @@ typedef enum : NSUInteger { - (void)tappedNonBlockingIdentityChangeForRecipientId:(nullable NSString *)signalId { if (signalId == nil) { - // Before 2.13 we didn't track the recipient id in the identity change error. - DDLogWarn(@"%@ Ignoring tap on legacy nonblocking identity change since it has no signal id", self.tag); - return; + if (self.thread.isGroupThread) { + // Before 2.13 we didn't track the recipient id in the identity change error. + DDLogWarn(@"%@ Ignoring tap on legacy nonblocking identity change since it has no signal id", self.tag); + } else { + DDLogInfo( + @"%@ Assuming tap on legacy nonblocking identity change corresponds to current contact thread: %@", + self.tag, + self.thread.contactIdentifier); + signalId = self.thread.contactIdentifier; + } } [self showFingerprintWithRecipientId:signalId];