mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Bump the RustSDK, bump the app minor version and force user logout
This commit is contained in:
committed by
Stefan Ceriu
parent
bb18ed1e91
commit
2359910857
@@ -136,11 +136,9 @@ class AppCoordinator: AppCoordinatorProtocol {
|
||||
private func performMigrationsIfNecessary(from oldVersion: Version, to newVersion: Version) {
|
||||
guard oldVersion != newVersion else { return }
|
||||
|
||||
if oldVersion < Version(1, 0, 20) {
|
||||
// Version 1.0.20 introduced a new format for restoration tokens.
|
||||
// Remove user data to prevent conflict in the crypto store
|
||||
// with the newly generated device ID when signing in again.
|
||||
MXLog.warning("Clearing user data for hardcoded proxy.")
|
||||
if oldVersion < Version(1, 1, 0) {
|
||||
// Version 1.1.0 switched the Rust crypto store to SQLite
|
||||
// There are no migrations in place so we need to reset everything
|
||||
wipeUserData()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ final class AppSettings: ObservableObject {
|
||||
private static var store: UserDefaults! = UserDefaults(suiteName: suiteName)
|
||||
|
||||
static func reset() {
|
||||
MXLog.warning("Resetting the AppSettings.")
|
||||
store.removePersistentDomain(forName: suiteName)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user