mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Implement content restriction API
This commit is contained in:
@@ -160,6 +160,7 @@ private enum PreferencesKeyValues: Int32 {
|
||||
case contactsSettings = 16
|
||||
case secretChatSettings = 17
|
||||
case walletCollection = 18
|
||||
case contentSettings = 19
|
||||
}
|
||||
|
||||
public func applicationSpecificPreferencesKey(_ value: Int32) -> ValueBoxKey {
|
||||
@@ -264,6 +265,12 @@ public struct PreferencesKeys {
|
||||
key.setInt32(0, value: PreferencesKeyValues.walletCollection.rawValue)
|
||||
return key
|
||||
}()
|
||||
|
||||
public static let contentSettings: ValueBoxKey = {
|
||||
let key = ValueBoxKey(length: 4)
|
||||
key.setInt32(0, value: PreferencesKeyValues.contentSettings.rawValue)
|
||||
return key
|
||||
}()
|
||||
}
|
||||
|
||||
private enum SharedDataKeyValues: Int32 {
|
||||
|
||||
Reference in New Issue
Block a user