mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
don't keep re-prompting the user to migrate if they get spontaneously logged out. (#5844)
This commit is contained in:
@@ -504,6 +504,11 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
appSettings.hasSeenNewSoundBanner = false
|
||||
}
|
||||
|
||||
if oldVersion < Version(26, 07, 3) {
|
||||
MXLog.info("Migrating to version 26.07.3, marking the app as previously signed in.")
|
||||
appSettings.hasSignedInBefore = true
|
||||
}
|
||||
|
||||
userSessionMigrationsOldVersion = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -293,6 +293,12 @@ final nonisolated class AppSettings: @unchecked Sendable {
|
||||
@UserPreference(defaultValue: AnalyticsConsentState.unknown)
|
||||
var analyticsConsentState: AnalyticsConsentState
|
||||
|
||||
/// Whether a user session has ever been set up on this device. Deliberately not cleared on
|
||||
/// logout: it stops the Classic app migration prompt from reappearing when an Element X
|
||||
/// user is signed out unexpectedly (invalidated token, corrupted storage, etc).
|
||||
@UserPreference(defaultValue: false)
|
||||
var hasSignedInBefore: Bool
|
||||
|
||||
@UserPreference(defaultValue: false)
|
||||
var hasRunNotificationPermissionsOnboarding: Bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user