MESSENGER-4407 fixes from testprotocol

This commit is contained in:
JanNiklas Grabowski
2023-03-16 16:45:48 +01:00
parent e2912b7e42
commit cf1317452e
7 changed files with 33 additions and 13 deletions
@@ -3418,6 +3418,13 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
if (row == SHOW_NEW_FEATURES)
{
NSString *htmlFile = [[NSBundle mainBundle] pathForResource:BWIBuildSettings.shared.newFeaturesHTML ofType:@"html" inDirectory:nil];
// bwi: if enabled replace feature link and use file from document directory
if (BWIBuildSettings.shared.bwiReplaceFeatureLink) {
BwiNewFeatureHelper *featureHelper = [[BwiNewFeatureHelper alloc] init];
[featureHelper replaceFeatureHistoryLink];
NSURL *filePath = [featureHelper getDocumentDirectory];
htmlFile = [filePath path];
}
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithLocalHTMLFile: htmlFile];
webViewViewController.title = BWIL10n.bwiSettingsNewFeaturesHeader;
[self pushViewController:webViewViewController];