(Fix #1543) Fixed the bug where tapping the send button while inline text prediction has uncommitted text messes up the message
As the title says, this bug has existed since Apple launched the inline text prediction and as a long term Telegram user, it used to drive me insane and even forced me to switch to a different app. Finally got some time to fix this issue and will probably shift back to Telegram.
Issue link: https://github.com/TelegramMessenger/Telegram-iOS/issues/1543
| Before | After |
|---|---|
Note: While this fixes the bug for the text field in the chat, it does not fix the same problem in the caption text field when an attachment is added. That legacy code is completely in obj-c and I don't really understand it much.
@laktyushin Would it be impossible for you to review this and help fix this annoying bug?
@laktyushin this bug is very annoying and ruins the user experience on IOS devices.
Please review this pr
Can we merge this pls, its so annoying