2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 01:16:12 +00:00

Allow zero width space in the middle of text.

Fixes #6959.
This commit is contained in:
John Preston
2024-05-28 10:54:20 +04:00
parent 7db9abf725
commit 32cd2120ac
2 changed files with 2 additions and 5 deletions

View File

@@ -431,10 +431,7 @@ bool HasSendText(not_null<const Ui::InputField*> field) {
const auto &text = field->getTextWithTags().text;
for (const auto &ch : text) {
const auto code = ch.unicode();
if (code != ' '
&& code != '\n'
&& code != '\r'
&& !IsReplacedBySpace(code)) {
if (!IsTrimmed(ch) && !IsReplacedBySpace(code)) {
return true;
}
}