Use the new notification sound. (#4572)

* Use the new notification sound.

* Add a banner informing the user of the new notification sound.
This commit is contained in:
Doug
2025-10-03 21:09:50 +01:00
committed by GitHub
parent a226c99492
commit 7e7cf1587f
18 changed files with 133 additions and 2 deletions
@@ -437,6 +437,11 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
await userSession.clientProxy.expireSyncSessions()
}
if oldVersion < Version(25, 10, 0) {
MXLog.info("Migrating to version 25.10.0, showing new sound banner to existing user.")
appSettings.hasSeenNewSoundBanner = false
}
userSessionMigrationsOldVersion = nil
}
@@ -29,6 +29,7 @@ final class AppSettings {
private enum UserDefaultsKeys: String {
case lastVersionLaunched
case seenInvites
case hasSeenNewSoundBanner
case appLockNumberOfPINAttempts
case appLockNumberOfBiometricAttempts
case timelineStyle
@@ -161,6 +162,10 @@ final class AppSettings {
@UserPreference(key: UserDefaultsKeys.seenInvites, defaultValue: [], storageType: .userDefaults(store))
var seenInvites: Set<String>
/// Defaults to `true` for new users, and we use a migration to set it to `false` for existing users.
@UserPreference(key: UserDefaultsKeys.hasSeenNewSoundBanner, defaultValue: true, storageType: .userDefaults(store))
var hasSeenNewSoundBanner
/// The initial set of account providers shown to the user in the authentication flow.
///
/// Account provider is the friendly term for the server name. It should not contain an `https` prefix and should