mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix case-insensitive emoji suggestions.
Fixes #4528, fixes #4511, fixes #4535.
This commit is contained in:
parent
d9306e3e30
commit
91a7a77bb0
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ QString SuggestionsController::getEmojiQuery() {
|
|||
_queryStartPosition += i + 2;
|
||||
const auto length = position - i;
|
||||
auto result = text.mid(i, length);
|
||||
if (length == 2 && isUpperCaseLetter(text[1])) {
|
||||
if (length == 2 && isUpperCaseLetter(result[1])) {
|
||||
// No upper case single letter suggestions.
|
||||
// We don't want to suggest emoji on :D and :P
|
||||
return QString();
|
||||
|
|
Loading…
Add table
Reference in a new issue