MESSENGER 5004 add oidc flag

This commit is contained in:
JanNiklas Grabowski
2023-08-31 12:13:03 +02:00
parent 56d5e3597e
commit 06f94091c2
4 changed files with 8 additions and 4 deletions
@@ -678,7 +678,8 @@ enum {
- (void)removeDevice
{
MXWellKnownAuthentication *authentication = self.mainSession.homeserverWellknown.authentication;
if (authentication)
if (BWIBuildSettings.shared.isOIDCEnabled &&
authentication)
{
NSURL *logoutURL = [authentication getLogoutDeviceURLFromID:device.deviceId];
if (logoutURL)
@@ -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];