CR: use weak self

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

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

Loading…
Cancel
Save