fix: unregistered user shows "add to contacts"

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent e039363873
commit 46ddaa9cae

@ -163,11 +163,9 @@ NS_ASSUME_NONNULL_BEGIN
- (BOOL)hasExistingContact - (BOOL)hasExistingContact
{ {
OWSAssert([self.thread isKindOfClass:[TSContactThread class]]); OWSAssert([self.thread isKindOfClass:[TSContactThread class]]);
TSContactThread *contactThread = (TSContactThread *)self.thread; TSContactThread *contactThread = (TSContactThread *)self.thread;
NSString *recipientId = contactThread.contactIdentifier; NSString *recipientId = contactThread.contactIdentifier;
SignalAccount *signalAccount = [self.contactsViewHelper signalAccountForRecipientId:recipientId]; return self.contactsManager.allContactsMap[recipientId] != nil;
return signalAccount.contact != nil;
} }
#pragma mark - ContactEditingDelegate #pragma mark - ContactEditingDelegate

Loading…
Cancel
Save