MESSENGER-4478 refresh wellknown on app start

This commit is contained in:
Frank Rotermund
2024-01-29 15:21:41 +01:00
parent 80170b0c4f
commit 53617a2d19
3 changed files with 19 additions and 19 deletions

View File

@@ -43,7 +43,7 @@ when String # specific MatrixSDK released version
$matrixSDKVersionSpec = $matrixSDKVersion $matrixSDKVersionSpec = $matrixSDKVersion
end end
$matrixSDKVersionSpec = { :git => 'https://dl-gitlab.example.com/bwmessenger/bundesmessenger/bundesmessenger-ios-sdk', :tag => 'v2.15.0-RC02' } $matrixSDKVersionSpec = { :git => 'https://dl-gitlab.example.com/bwmessenger/bundesmessenger/bundesmessenger-ios-sdk', :tag => 'v2.15.0-RC03' }
# Method to import the MatrixSDK # Method to import the MatrixSDK
def import_MatrixSDK def import_MatrixSDK

View File

@@ -143,15 +143,7 @@ class AllChatsCoordinator: NSObject, SplitViewMasterCoordinatorProtocol {
} }
func pinUnlocked() { func pinUnlocked() {
checkMaintenanceStatus() onBWIAppStart()
enableMaintenanceTimer(true)
self.bwiCheckForMatomoPromt()
BWIAnalytics.sharedTracker.readUserConfig()
if BWIBuildSettings.shared.bwiPersonalNotesRoom {
self.bwiCheckForPersonalNotesRoom()
}
} }
func bwiOnUnlockedByPin() { func bwiOnUnlockedByPin() {
@@ -765,6 +757,21 @@ class AllChatsCoordinator: NSObject, SplitViewMasterCoordinatorProtocol {
maintenanceTimer = Timer.scheduledTimer(timeInterval: 10.0, target: self, selector: #selector(checkMaintenanceStatus), userInfo: nil, repeats: true) maintenanceTimer = Timer.scheduledTimer(timeInterval: 10.0, target: self, selector: #selector(checkMaintenanceStatus), userInfo: nil, repeats: true)
} }
} }
private func onBWIAppStart() {
checkMaintenanceStatus()
enableMaintenanceTimer(true)
self.bwiCheckForMatomoPromt()
BWIAnalytics.sharedTracker.readUserConfig()
if BWIBuildSettings.shared.bwiPersonalNotesRoom {
self.bwiCheckForPersonalNotesRoom()
}
// bwi #4478: refresh wellknown a bit more often
self.currentMatrixSession?.refreshHomeserverWellknown(false, success: nil, failure: nil)
}
} }
extension AllChatsCoordinator: SignOutFlowPresenterDelegate { extension AllChatsCoordinator: SignOutFlowPresenterDelegate {
@@ -788,15 +795,7 @@ extension AllChatsCoordinator: AllChatsViewControllerDelegate {
func allChatsViewControllerDidCompleteAuthentication(_ allChatsViewController: AllChatsViewController) { func allChatsViewControllerDidCompleteAuthentication(_ allChatsViewController: AllChatsViewController) {
self.delegate?.splitViewMasterCoordinatorDidCompleteAuthentication(self) self.delegate?.splitViewMasterCoordinatorDidCompleteAuthentication(self)
checkMaintenanceStatus() onBWIAppStart()
enableMaintenanceTimer(true)
self.bwiCheckForMatomoPromt()
BWIAnalytics.sharedTracker.resetMatomo()
if BWIBuildSettings.shared.bwiPersonalNotesRoom {
self.bwiCheckForPersonalNotesRoom()
}
} }
func allChatsViewController(_ allChatsViewController: AllChatsViewController, didSelectRoomWithParameters roomNavigationParameters: RoomNavigationParameters, completion: @escaping () -> Void) { func allChatsViewController(_ allChatsViewController: AllChatsViewController, didSelectRoomWithParameters roomNavigationParameters: RoomNavigationParameters, completion: @escaping () -> Void) {

View File

@@ -236,6 +236,7 @@ class AuthenticationService: NSObject {
var identityServerURL: URL? var identityServerURL: URL?
// FRROT wellknown call for identity server after server selection
if let wellKnown = try? await wellKnown(for: homeserverURL) { if let wellKnown = try? await wellKnown(for: homeserverURL) {
self.wellknown = wellKnown self.wellknown = wellKnown