Story optimizations

This commit is contained in:
Ali
2023-08-22 23:45:57 +04:00
parent a35f38c0f6
commit 4353823603
12 changed files with 498 additions and 230 deletions

View File

@@ -451,6 +451,14 @@ public final class MessageInputPanelComponent: Component {
fatalError("init(coder:) has not been implemented")
}
public func hasFirstResponder() -> Bool {
if let textFieldView = self.textField.view as? TextFieldComponent.View {
return textFieldView.hasFirstResponder()
} else {
return false
}
}
public func getSendMessageInput() -> SendMessageInput {
guard let textFieldView = self.textField.view as? TextFieldComponent.View else {
return .text(NSAttributedString())