MESSENGER-4751 use privacy url of well known

This commit is contained in:
JanNiklas Grabowski
2023-09-18 14:37:34 +02:00
parent e3cfb301a9
commit 043d277563
6 changed files with 42 additions and 27 deletions
@@ -759,7 +759,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
{
[sectionAbout addRowWithTag:ABOUT_ACCEPTABLE_USE_INDEX];
}
if (BWIBuildSettings.shared.applicationPrivacyPolicyUrlString.length)
if (self.mainSession.homeserverWellknown.dataPrivacyURL != nil)
{
[sectionAbout addRowWithTag:ABOUT_PRIVACY_INDEX];
}
@@ -3415,7 +3415,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
}
else if (row == ABOUT_PRIVACY_INDEX)
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:BWIBuildSettings.shared.applicationPrivacyPolicyUrlString] options:@{} completionHandler:nil];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:self.mainSession.homeserverWellknown.dataPrivacyURL] options:@{} completionHandler:nil];
}
else if (row == ABOUT_ACCESSIBILITY_DECLARATION_INDEX)
{