mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Fix #1947 - Check expected files are still present before restoring a session.
This commit is contained in:
committed by
Stefan Ceriu
parent
f7aeb3ee95
commit
3a600a94d5
@@ -118,6 +118,11 @@ class UserSessionStore: UserSessionStoreProtocol {
|
||||
MXLog.info("Restoring client with encrypted store.")
|
||||
}
|
||||
|
||||
guard credentials.restorationToken.sessionDirectories.isNonTransientUserDataValid() else {
|
||||
MXLog.error("Failed restoring login, missing non-transient user data")
|
||||
return .failure(.failedRestoringLogin)
|
||||
}
|
||||
|
||||
let homeserverURL = credentials.restorationToken.session.homeserverUrl
|
||||
|
||||
let builder = ClientBuilder
|
||||
|
||||
Reference in New Issue
Block a user