[WIP] Topics

This commit is contained in:
Ali
2022-10-04 18:19:39 +04:00
parent 533085c77a
commit 62697d4ffb
83 changed files with 1974 additions and 1650 deletions

View File

@@ -106,7 +106,7 @@ private final class TitleFieldComponent: Component {
let titleCredibilityContent: EmojiStatusComponent.Content
if component.fileId == 0 {
titleCredibilityContent = .topic(title: String(component.text.prefix(1)))
titleCredibilityContent = .topic(title: String(component.text.prefix(1)), colorIndex: 0)
} else {
titleCredibilityContent = .animation(content: .customEmoji(fileId: component.fileId), size: CGSize(width: 32.0, height: 32.0), placeholderColor: component.placeholderColor, themeColor: component.accentColor, loopMode: .count(2))
}