mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-12 09:19:52 +00:00
18 lines
547 B
Swift
18 lines
547 B
Swift
import Foundation
|
|
import SwiftSignalKit
|
|
import Postbox
|
|
|
|
|
|
func initializedAppSettingsAfterLogin(transaction: Transaction, appVersion: String, syncContacts: Bool) {
|
|
updateAppChangelogState(transaction: transaction, { state in
|
|
var state = state
|
|
state.checkedVersion = appVersion
|
|
state.previousVersion = appVersion
|
|
return state
|
|
})
|
|
transaction.updatePreferencesEntry(key: PreferencesKeys.contactsSettings, { _ in
|
|
return PreferencesEntry(ContactsSettings(synchronizeContacts: syncContacts))
|
|
})
|
|
}
|
|
|