mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Load room details on appearance. Avoid overwhelming the rust runtime and slow down the room timeline loading.
This commit is contained in:
@@ -134,6 +134,8 @@ class AuthenticationCoordinator: Coordinator {
|
||||
completion(.success(()))
|
||||
}
|
||||
} catch {
|
||||
MXLog.error("Failed logging in with error: \(error)")
|
||||
|
||||
DispatchQueue.main.async {
|
||||
completion(.failure(.failedLoggingIn))
|
||||
}
|
||||
@@ -156,6 +158,8 @@ class AuthenticationCoordinator: Coordinator {
|
||||
completion(.success(()))
|
||||
}
|
||||
} catch {
|
||||
MXLog.error("Failed restoring login with error: \(error)")
|
||||
|
||||
DispatchQueue.main.async {
|
||||
completion(.failure(.failedRestoringLogin))
|
||||
}
|
||||
|
||||
@@ -101,6 +101,8 @@ class UserSession: ClientDelegate {
|
||||
self.rooms = rooms
|
||||
}
|
||||
}
|
||||
|
||||
client.setDelegate(delegate: nil)
|
||||
}
|
||||
|
||||
// MARK: Private
|
||||
|
||||
Reference in New Issue
Block a user