mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Warn that logging out will lose E2E keys (#950).
Add a check on weakSelf.
This commit is contained in:
parent
312b026ec2
commit
3350db4a24
1 changed files with 13 additions and 10 deletions
|
@ -1619,6 +1619,8 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
|
|||
|
||||
[currentAlert addActionWithTitle:NSLocalizedStringFromTable(@"settings_sign_out", @"Vector", nil) style:MXKAlertActionStyleDefault handler:^(MXKAlert *alert) {
|
||||
|
||||
if (weakSelf)
|
||||
{
|
||||
__strong __typeof(weakSelf)strongSelf = weakSelf;
|
||||
strongSelf->currentAlert = nil;
|
||||
|
||||
|
@ -1632,6 +1634,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
|
|||
[[MXKAccountManager sharedManager] logout];
|
||||
|
||||
});
|
||||
}
|
||||
}];
|
||||
|
||||
currentAlert.cancelButtonIndex = [currentAlert addActionWithTitle:[NSBundle mxk_localizedStringForKey:@"cancel"] style:MXKAlertActionStyleDefault handler:^(MXKAlert *alert){
|
||||
|
|
Loading…
Reference in a new issue