mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-08-17 17:07:23 +02:00
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
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))
|
|
})
|
|
}
|
|
|