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;
}
}

@ -1 +1 @@
Subproject commit 34fcd4981d764f0869793893f37822b9c09393ab
Subproject commit a48b3d3750ac1a1e3b2f4da3494fa5fb23b66106