mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -308,6 +308,7 @@ private enum PreferencesKeyValues: Int32 {
|
||||
case botBiometricsState = 39
|
||||
case businessLinks = 40
|
||||
case starGifts = 41
|
||||
case botStorageState = 42
|
||||
}
|
||||
|
||||
public func applicationSpecificPreferencesKey(_ value: Int32) -> ValueBoxKey {
|
||||
@@ -538,6 +539,13 @@ public struct PreferencesKeys {
|
||||
key.setInt32(0, value: PreferencesKeyValues.starGifts.rawValue)
|
||||
return key
|
||||
}
|
||||
|
||||
public static func botStorageState(peerId: PeerId) -> ValueBoxKey {
|
||||
let key = ValueBoxKey(length: 4 + 8)
|
||||
key.setInt32(0, value: PreferencesKeyValues.botStorageState.rawValue)
|
||||
key.setInt64(4, value: peerId.toInt64())
|
||||
return key
|
||||
}
|
||||
}
|
||||
|
||||
private enum SharedDataKeyValues: Int32 {
|
||||
|
||||
Reference in New Issue
Block a user