Warn that logging out will lose E2E keys (#950).

Add a check on weakSelf.
This commit is contained in:
manuroe
2017-01-24 13:48:42 +01:00
parent 1f72d5056b
commit 6d7bde665c
@@ -1639,9 +1639,11 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
currentAlert.cancelButtonIndex = [currentAlert addActionWithTitle:[NSBundle mxk_localizedStringForKey:@"cancel"] style:MXKAlertActionStyleDefault handler:^(MXKAlert *alert){
__strong __typeof(weakSelf)strongSelf = weakSelf;
strongSelf->currentAlert = nil;
if (weakSelf)
{
__strong __typeof(weakSelf)strongSelf = weakSelf;
strongSelf->currentAlert = nil;
}
}];
[currentAlert showInViewController:self];