From 76c26879d418960218a07d58cd844d0ee1ae3ec3 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Thu, 24 Aug 2023 17:18:13 +0200 Subject: [PATCH] Hide deactivate account if the auth property is present on the WK. --- Riot/Modules/Settings/SettingsViewController.m | 2 +- changelog.d/7648.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/7648.bugfix diff --git a/Riot/Modules/Settings/SettingsViewController.m b/Riot/Modules/Settings/SettingsViewController.m index be87bea3b8..c50bc3c357 100644 --- a/Riot/Modules/Settings/SettingsViewController.m +++ b/Riot/Modules/Settings/SettingsViewController.m @@ -608,7 +608,7 @@ - (void)updateSections } } - if (BuildSettings.settingsScreenAllowDeactivatingAccount) + if (BuildSettings.settingsScreenAllowDeactivatingAccount && !self.mainSession.homeserverWellknown.authentication) { Section *sectionDeactivate = [Section sectionWithTag:SECTION_TAG_DEACTIVATE_ACCOUNT]; [sectionDeactivate addRowWithTag:0]; diff --git a/changelog.d/7648.bugfix b/changelog.d/7648.bugfix new file mode 100644 index 0000000000..c8f48546c1 --- /dev/null +++ b/changelog.d/7648.bugfix @@ -0,0 +1 @@ +Deactivate account is hidden for servers with OIDC auth. \ No newline at end of file