From 9abb8ab6f8fd86b8d43a317eaf09cd2f2e95ef87 Mon Sep 17 00:00:00 2001 From: SBiOSoftWhare Date: Fri, 1 Jun 2018 16:08:55 +0200 Subject: [PATCH] Update account deactivation success handling in SettingsViewController. Do not send logout request to home server. --- Riot/ViewController/SettingsViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Riot/ViewController/SettingsViewController.m b/Riot/ViewController/SettingsViewController.m index fb90398b1..5c7e2d5d5 100644 --- a/Riot/ViewController/SettingsViewController.m +++ b/Riot/ViewController/SettingsViewController.m @@ -4102,8 +4102,9 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)(); - (void)deactivateAccountViewControllerDidDeactivateWithSuccess:(DeactivateAccountViewController *)deactivateAccountViewController { NSLog(@"[SettingsViewController] Deactivate account with success"); + - [[AppDelegate theDelegate] logoutWithCompletion:^(BOOL isLoggedOut) { + [[AppDelegate theDelegate] logoutSendingRequestServer:NO completion:^(BOOL isLoggedOut) { NSLog(@"[SettingsViewController] Complete clear user data after account deactivation"); }]; }