mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Poll emoji improvements
This commit is contained in:
@@ -305,7 +305,14 @@ public final class TextFieldComponent: Component {
|
||||
}
|
||||
|
||||
public func insertText(_ text: NSAttributedString) {
|
||||
guard let component = self.component else {
|
||||
return
|
||||
}
|
||||
|
||||
self.updateInputState { state in
|
||||
if let characterLimit = component.characterLimit, state.inputText.length + text.length > characterLimit {
|
||||
return state
|
||||
}
|
||||
return state.insertText(text)
|
||||
}
|
||||
if !self.isUpdating {
|
||||
|
||||
Reference in New Issue
Block a user