mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
Fixes #239 - Use new restoration token format, pass stored homeserver url to the client builder when restoring, dropping the need for a network request
- bumped the rust sdk to v1.0.17-alpha - move all UserSession related files to Services/UserSession
This commit is contained in:
@@ -95,7 +95,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
.build()
|
||||
|
||||
self.slidingSync = try slidingSyncBuilder
|
||||
.addView(view: slidingSyncView)
|
||||
.addView(v: slidingSyncView)
|
||||
.withCommonExtensions()
|
||||
.build()
|
||||
|
||||
@@ -136,9 +136,9 @@ class ClientProxy: ClientProxyProtocol {
|
||||
client.homeserver()
|
||||
}
|
||||
|
||||
var restoreToken: String? {
|
||||
var restorationToken: RestorationToken? {
|
||||
do {
|
||||
return try client.restoreToken()
|
||||
return try RestorationToken(session: client.session())
|
||||
} catch {
|
||||
MXLog.error("Failed retrieving restore token with error: \(error)")
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user