This commit is contained in:
Ilya Laktyushin
2020-02-11 19:41:59 +04:00
parent 97fd1d10f0
commit 801b26f157
11 changed files with 253 additions and 71 deletions

View File

@@ -197,6 +197,7 @@ private enum PreferencesKeyValues: Int32 {
case walletCollection = 18
case contentSettings = 19
case chatListFilters = 20
case peersNearby = 21
}
public func applicationSpecificPreferencesKey(_ value: Int32) -> ValueBoxKey {
@@ -313,6 +314,12 @@ public struct PreferencesKeys {
key.setInt32(0, value: PreferencesKeyValues.chatListFilters.rawValue)
return key
}()
public static let peersNearby: ValueBoxKey = {
let key = ValueBoxKey(length: 4)
key.setInt32(0, value: PreferencesKeyValues.peersNearby.rawValue)
return key
}()
}
private enum SharedDataKeyValues: Int32 {