mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Temp
This commit is contained in:
parent
675696da2b
commit
0aac8d47ac
11 changed files with 197 additions and 19 deletions
|
|
@ -9,6 +9,7 @@ private enum ApplicationSpecificPreferencesKeyValues: Int32 {
|
|||
case widgetSettings = 19
|
||||
case mediaAutoSaveSettings = 20
|
||||
case ageVerificationState = 21
|
||||
case textProcessingEditingState = 22
|
||||
}
|
||||
|
||||
public struct ApplicationSpecificPreferencesKeys {
|
||||
|
|
@ -18,6 +19,13 @@ public struct ApplicationSpecificPreferencesKeys {
|
|||
public static let widgetSettings = applicationSpecificPreferencesKey(ApplicationSpecificPreferencesKeyValues.widgetSettings.rawValue)
|
||||
public static let mediaAutoSaveSettings = applicationSpecificPreferencesKey(ApplicationSpecificPreferencesKeyValues.mediaAutoSaveSettings.rawValue)
|
||||
public static let ageVerificationState = applicationSpecificPreferencesKey(ApplicationSpecificPreferencesKeyValues.ageVerificationState.rawValue)
|
||||
|
||||
public static func textProcessingEditingState(peerId: PeerId) -> ValueBoxKey {
|
||||
let key = ValueBoxKey(length: 4 + 8)
|
||||
key.setInt32(0, value: ApplicationSpecificPreferencesKeyValues.textProcessingEditingState.rawValue)
|
||||
key.setInt64(4, value: peerId.toInt64())
|
||||
return key
|
||||
}
|
||||
}
|
||||
|
||||
private enum ApplicationSpecificSharedDataKeyValues: Int32 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue