mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Suggest bot commands only in the start of the field.
This commit is contained in:
parent
77330aa6a7
commit
5fe1988d0a
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ AutocompleteQuery ParseMentionHashtagBotCommandQuery(
|
|||
}
|
||||
return result;
|
||||
} else if (text[i - 1] == '/') {
|
||||
if (i < 2) {
|
||||
if (i < 2 && !fragmentPosition) {
|
||||
result.fromStart = (i == 1) && (fragmentPosition == 0);
|
||||
result.query = text.mid(i - 1, position - fragmentPosition - i + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue