Various improvements

This commit is contained in:
Ilya Laktyushin
2025-03-23 03:56:44 +04:00
parent fa93715135
commit f720277d29
19 changed files with 851 additions and 631 deletions

View File

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