mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Merge branch 'master' into postbox-refactoring-1
This commit is contained in:
@@ -6,6 +6,6 @@ import MtProtoKit
|
||||
|
||||
func updateAppChangelogState(transaction: Transaction, _ f: @escaping (AppChangelogState) -> AppChangelogState) {
|
||||
transaction.updatePreferencesEntry(key: PreferencesKeys.appChangelogState, { current in
|
||||
return f((current as? AppChangelogState) ?? AppChangelogState.default)
|
||||
return PreferencesEntry(f((current as? AppChangelogState) ?? AppChangelogState.default))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user