mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
7db9abf725
commit
32cd2120ac
2 changed files with 2 additions and 5 deletions
|
@ -431,10 +431,7 @@ bool HasSendText(not_null<const Ui::InputField*> field) {
|
||||||
const auto &text = field->getTextWithTags().text;
|
const auto &text = field->getTextWithTags().text;
|
||||||
for (const auto &ch : text) {
|
for (const auto &ch : text) {
|
||||||
const auto code = ch.unicode();
|
const auto code = ch.unicode();
|
||||||
if (code != ' '
|
if (!IsTrimmed(ch) && !IsReplacedBySpace(code)) {
|
||||||
&& code != '\n'
|
|
||||||
&& code != '\r'
|
|
||||||
&& !IsReplacedBySpace(code)) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 34fcd4981d764f0869793893f37822b9c09393ab
|
Subproject commit a48b3d3750ac1a1e3b2f4da3494fa5fb23b66106
|
Loading…
Add table
Reference in a new issue