don't keep re-prompting the user to migrate if they get spontaneously logged out. (#5844)

This commit is contained in:
Matthew Hodgson
2026-07-07 14:28:40 +01:00
committed by GitHub
parent 9234060fb6
commit 834938f585
6 changed files with 21 additions and 4 deletions
@@ -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