mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
19 lines
476 B
Swift
19 lines
476 B
Swift
import Foundation
|
|
#if os(macOS)
|
|
import PostboxMac
|
|
import SwiftSignalKitMac
|
|
import MtProtoKitMac
|
|
#else
|
|
import Postbox
|
|
import SwiftSignalKit
|
|
import MtProtoKit
|
|
#endif
|
|
|
|
import SyncCore
|
|
|
|
func updateAppChangelogState(transaction: Transaction, _ f: @escaping (AppChangelogState) -> AppChangelogState) {
|
|
transaction.updatePreferencesEntry(key: PreferencesKeys.appChangelogState, { current in
|
|
return f((current as? AppChangelogState) ?? AppChangelogState.default)
|
|
})
|
|
}
|