mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Suggest bot commands only in the start of the field.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user