mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Don't show digits in first word emoji suggestions.
This commit is contained in:
parent
5f8ede194b
commit
74e120bc7b
1 changed files with 6 additions and 1 deletions
|
@ -49,7 +49,12 @@ struct LangPackData {
|
|||
[[nodiscard]] bool SkipExactKeyword(
|
||||
const QString &language,
|
||||
const QString &word) {
|
||||
if (language != qstr("en")) {
|
||||
if ((word.size() == 1)
|
||||
&& (word[0] >= '0' && word[0] <= '9')) {
|
||||
return true;
|
||||
} else if (word == qstr("10")) {
|
||||
return true;
|
||||
} else if (language != qstr("en")) {
|
||||
return false;
|
||||
} else if ((word.size() == 1)
|
||||
&& (word[0] != '$')
|
||||
|
|
Loading…
Add table
Reference in a new issue