mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Merge commit '7d8920db82052bce3d9c6f37b2bd78edebd6f06e'
# Conflicts: # submodules/CallListUI/Sources/CallListController.swift
This commit is contained in:
@@ -308,6 +308,8 @@ private enum PreferencesKeyValues: Int32 {
|
||||
case botBiometricsState = 39
|
||||
case businessLinks = 40
|
||||
case starGifts = 41
|
||||
case botStorageState = 42
|
||||
case secureBotStorageState = 43
|
||||
}
|
||||
|
||||
public func applicationSpecificPreferencesKey(_ value: Int32) -> ValueBoxKey {
|
||||
@@ -538,6 +540,19 @@ 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
|
||||
}
|
||||
|
||||
public static func secureBotStorageState() -> ValueBoxKey {
|
||||
let key = ValueBoxKey(length: 4 + 8)
|
||||
key.setInt32(0, value: PreferencesKeyValues.secureBotStorageState.rawValue)
|
||||
return key
|
||||
}
|
||||
}
|
||||
|
||||
private enum SharedDataKeyValues: Int32 {
|
||||
|
||||
Reference in New Issue
Block a user