CR: use weak self

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent f7468acad2
commit 842baa3072

@ -49,13 +49,15 @@ NS_ASSUME_NONNULL_BEGIN
OWSAssert(self.attachment); OWSAssert(self.attachment);
OWSAssert(thread); OWSAssert(thread);
__weak typeof(self) weakSelf = self;
BOOL didShowSNAlert = BOOL didShowSNAlert =
[SafetyNumberConfirmationAlert presentAlertIfNecessaryWithRecipientIds:thread.recipientIdentifiers [SafetyNumberConfirmationAlert presentAlertIfNecessaryWithRecipientIds:thread.recipientIdentifiers
confirmationText:[SafetyNumberStrings confirmSendButton] confirmationText:[SafetyNumberStrings confirmSendButton]
contactsManager:self.contactsManager contactsManager:self.contactsManager
completion:^(BOOL didConfirm) { completion:^(BOOL didConfirm) {
if (didConfirm) { if (didConfirm) {
[self threadWasSelected:thread]; [weakSelf threadWasSelected:thread];
} }
}]; }];
if (didShowSNAlert) { if (didShowSNAlert) {

Loading…
Cancel
Save