Merge commit '7d8920db82052bce3d9c6f37b2bd78edebd6f06e'

# Conflicts:
#	submodules/CallListUI/Sources/CallListController.swift
This commit is contained in:
Isaac
2025-03-30 02:07:46 +04:00
80 changed files with 2995 additions and 960 deletions

View File

@@ -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 {