mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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
@@ -68,6 +68,8 @@ class KeychainController: KeychainControllerProtocol {
|
||||
}
|
||||
|
||||
func removeRestorationTokenForUsername(_ username: String) {
|
||||
MXLog.warning("Removing restoration token for user: \(username).")
|
||||
|
||||
do {
|
||||
try keychain.remove(username)
|
||||
} catch {
|
||||
@@ -76,6 +78,8 @@ class KeychainController: KeychainControllerProtocol {
|
||||
}
|
||||
|
||||
func removeAllRestorationTokens() {
|
||||
MXLog.warning("Removing all user restoration tokens.")
|
||||
|
||||
do {
|
||||
try keychain.removeAll()
|
||||
} catch {
|
||||
|
||||
@@ -38,6 +38,7 @@ class UserSessionStore: UserSessionStoreProtocol {
|
||||
|
||||
/// Deletes all data stored in the shared container and keychain
|
||||
func reset() {
|
||||
MXLog.warning("Resetting the UserSessionStore. All accounts will be affected.")
|
||||
try? FileManager.default.removeItem(at: baseDirectory)
|
||||
keychainController.removeAllRestorationTokens()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user