Filter improvements and suggested filters

This commit is contained in:
Ali
2020-03-08 22:30:22 +04:00
parent ec69b23599
commit 88cc91a43c
21 changed files with 510 additions and 134 deletions

View File

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