MESSENGER-3546 New functions history

This commit is contained in:
Frank Rotermund
2022-09-21 08:55:16 +00:00
parent 2cf7932af7
commit 734bb23add
4 changed files with 81 additions and 0 deletions

View File

@@ -26,6 +26,40 @@
</style>
</head>
<body>
<div>
<p>
<b>Feature-Übersicht</b>
</p>
<li/><a href="$FEATURELINK">Feature-Übersicht</a>
</div>
<div>
<p>
<b>Version 1.25.0</b>
</p>
<p>
<b>Neue Funktionen</b>
<ul>
<li/>Deine Unterhaltungen werden, wie bei anderen bekannten Messengern, in Form von "Chat-Bubbles" angezeigt.
<li/>Beim Erstellen von Umfragen kannst du nun zwischen offenen und geschlossenen Umfragen auswählen. Bei einer geschlossenen Umfrage sind die Ergebnisse erst sichtbar, nachdem die Umfrage vom Ersteller beendet wurde.
</ul>
</p>
<p>
<b>Verbesserungen</b>
<ul>
<li/>Die Rolle Standard wurde umbenannt zu Mitglied.
</ul>
</p>
<p>
<b>Behobene Bugs</b>
<ul>
<li/>Beim Versenden spezieller Dateitypen kann es nicht mehr zu Abstürzen kommen.
</ul>
</p>
</div>
<div>
<p>
<b>Version 1.24.0</b>

View File

@@ -128,6 +128,11 @@
MXStrongifyAndReturnIfNil(self);
[self updateSideMenuNotifcationIcon];
}];
// replace link
if (BwiBuildSettings.bwiReplaceFeatureLink) {
[[[BwiNewFeatureHelper alloc] init] replaceFeatureHistoryLink];
}
}
- (void)userInterfaceThemeDidChange

View File

@@ -112,6 +112,10 @@ final class BwiBuildSettings: NSObject {
"24c2ec541e61e8e68944b96dc45ed5df12f6bdbda283cb0b3a522742aa970256",
"1be0b314a6c915d4475290522baef5b642db1b6d68937792b8e0eb5b7b0d6666" ]
// replace feature history link variable with the appropiate build setting
static let bwiFeatureHistoryLink = "https://messenger.bwi.de/#c4783"
static let bwiReplaceFeatureLink = true
// login with matrix id should only be enabled in some configurations
static let bwiEnableLoginWithMatrixID = true

View File

@@ -0,0 +1,38 @@
//
/*
* Copyright (c) 2022 BWI GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Foundation
@objc class BwiNewFeatureHelper: NSObject {
@objc func replaceFeatureHistoryLink() {
guard let urlPath = Bundle.main.url(forResource: "new_features", withExtension: "html") else {
return
}
//reading
do {
var text = try String(contentsOf: urlPath, encoding: .utf8)
text = text.replacingOccurrences(of: "$FEATURELINK", with: BwiBuildSettings.bwiFeatureHistoryLink)
try text.write(to: urlPath, atomically: false, encoding: .utf8)
}
catch {
}
}
}