Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Mikhail Filimonov
2024-01-29 09:15:35 +04:00
79 changed files with 1705 additions and 687 deletions

View File

@@ -279,6 +279,7 @@ private enum PreferencesKeyValues: Int32 {
case storiesConfiguration = 32
case audioTranscriptionTrialState = 33
case didCacheSavedMessageTagsPrefix = 34
case displaySavedChatsAsTopics = 35
}
public func applicationSpecificPreferencesKey(_ value: Int32) -> ValueBoxKey {
@@ -456,6 +457,12 @@ public struct PreferencesKeys {
key.setInt64(4, value: threadId ?? 0)
return key
}
public static func displaySavedChatsAsTopics() -> ValueBoxKey {
let key = ValueBoxKey(length: 4)
key.setInt32(0, value: PreferencesKeyValues.displaySavedChatsAsTopics.rawValue)
return key
}
}
private enum SharedDataKeyValues: Int32 {

View File

@@ -235,7 +235,8 @@ public let telegramPostboxSeedConfiguration: SeedConfiguration = {
}
return result
}
},
displaySavedMessagesAsTopicListPreferencesKey: PreferencesKeys.displaySavedChatsAsTopics()
)
}()