From d3d9d2e64c492e0148172da78a3c06c6fa00ec87 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 18 Jun 2018 17:20:49 -0400 Subject: [PATCH] Don't cache CNContact. --- .../ThreadSettings/OWSAddToContactViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ThreadSettings/OWSAddToContactViewController.m b/Signal/src/ViewControllers/ThreadSettings/OWSAddToContactViewController.m index 44703f7de..d60423603 100644 --- a/Signal/src/ViewControllers/ThreadSettings/OWSAddToContactViewController.m +++ b/Signal/src/ViewControllers/ThreadSettings/OWSAddToContactViewController.m @@ -198,7 +198,8 @@ NS_ASSUME_NONNULL_BEGIN } CNContact *_Nullable cnContact = [self.contactsManager cnContactWithId:contact.cnContactId]; if (!cnContact) { - // TODO: + OWSFail(@"%@ Could not load system contact.", self.logTag); + return; } [self.contactsViewHelper presentContactViewControllerForRecipientId:self.recipientId fromViewController:self