MESSENGER 5004 add oidc flag

This commit is contained in:
JanNiklas Grabowski
2023-08-31 12:13:03 +02:00
parent 7c01638c81
commit d4ab5f4bad
4 changed files with 8 additions and 4 deletions
@@ -504,7 +504,8 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
}
NSString *manageAccountURL = self.mainSession.homeserverWellknown.authentication.account;
if (manageAccountURL)
if (BWIBuildSettings.shared.isOIDCEnabled &&
manageAccountURL)
{
Section *account = [Section sectionWithTag: SECTION_TAG_ACCOUNT];
[account addRowWithTag:ACCOUNT_MANAGE_INDEX];
@@ -819,7 +820,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
}
}
if (BWIBuildSettings.shared.settingsScreenAllowDeactivatingAccount &&
if (BWIBuildSettings.shared.settingsScreenAllowDeactivatingAccount && !BWIBuildSettings.shared.isOIDCEnabled &&
BuildSettings.settingsScreenAllowDeactivatingAccount && !self.mainSession.homeserverWellknown.authentication)
{
Section *sectionDeactivate = [Section sectionWithTag:SECTION_TAG_DEACTIVATE_ACCOUNT];