iCloud Backup, better chatview exp. bugfixes++

This commit is contained in:
2026-02-27 14:05:11 +01:00
parent 3997f3feee
commit e9d0ad3c66
11 changed files with 634 additions and 30 deletions

View File

@@ -953,6 +953,15 @@ class SettingsService {
return true
}
// MARK: - Cache Reload
/// Replace the in-memory cache with a fresh read from the database.
/// Called by BackupService after restoring a backup.
func reloadFromDatabase() {
cache = (try? DatabaseService.shared.loadAllSettings()) ?? [:]
Log.settings.info("Settings cache reloaded (\(self.cache.count) entries)")
}
// MARK: - UserDefaults Migration
private func migrateFromUserDefaultsIfNeeded() {