iCloud Backup, better chatview exp. bugfixes++
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user