From cf0cfb5c1e33e1e5dfd92ac4ad3b0f41f99bd9bb Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 18 Jun 2023 21:31:18 +0400 Subject: [PATCH] Fix story reply --- .../TextFieldComponent/Sources/TextFieldComponent.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/TextFieldComponent/Sources/TextFieldComponent.swift b/submodules/TelegramUI/Components/TextFieldComponent/Sources/TextFieldComponent.swift index 02e691564d..9f8c4fdeee 100644 --- a/submodules/TelegramUI/Components/TextFieldComponent/Sources/TextFieldComponent.swift +++ b/submodules/TelegramUI/Components/TextFieldComponent/Sources/TextFieldComponent.swift @@ -189,7 +189,8 @@ public final class TextFieldComponent: Component { public func getAttributedText() -> NSAttributedString { Keyboard.applyAutocorrection(textView: self.textView) - return self.inputState.inputText + return NSAttributedString(string: self.textView.text ?? "") + //return self.inputState.inputText } public func setAttributedText(_ string: NSAttributedString) {