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

This commit is contained in:
Ilya Laktyushin
2022-10-05 14:32:22 +03:00
86 changed files with 2049 additions and 1667 deletions

View File

@@ -106,7 +106,7 @@ private final class TitleFieldComponent: Component {
let iconContent: EmojiStatusComponent.Content
if component.fileId == 0 {
iconContent = .topic(title: String(component.text.prefix(1)))
iconContent = .topic(title: String(component.text.prefix(1)), colorIndex: 0)
} else {
iconContent = .animation(content: .customEmoji(fileId: component.fileId), size: CGSize(width: 32.0, height: 32.0), placeholderColor: component.placeholderColor, themeColor: component.accentColor, loopMode: .count(2))
}
@@ -731,7 +731,7 @@ public class ForumCreateTopicScreen: ViewControllerComponentContainer {
}
@objc private func createPressed() {
self.dismiss()
// self.dismiss()
self.completion(self.state.0, self.state.1)
}