This commit is contained in:
Ali
2022-10-07 16:03:44 +04:00
parent 852478d851
commit 7ba86968c8
22 changed files with 790 additions and 398 deletions

View File

@@ -357,9 +357,9 @@ private final class ForumCreateTopicScreenComponent: CombinedComponent {
case .create:
self.title = ""
self.fileId = 0
case let .edit(topic):
self.title = topic.info.title
self.fileId = topic.info.icon ?? 0
case let .edit(info):
self.title = info.title
self.fileId = info.icon ?? 0
}
super.init()
@@ -670,7 +670,7 @@ private final class ForumCreateTopicScreenComponent: CombinedComponent {
public class ForumCreateTopicScreen: ViewControllerComponentContainer {
public enum Mode: Equatable {
case create
case edit(topic: ForumChannelTopics.Item)
case edit(topic: EngineMessageHistoryThread.Info)
}
private var state: (String, Int64?) = ("", nil)