mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
fixed shared memory locations, scheme updated
This commit is contained in:
@@ -271,8 +271,8 @@ void FlatTextarea::getMentionHashtagBotCommandStart(QString &start, UserData *&c
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (usernameLength) {
|
||||
QStringRef username = text.midRef(1, usernameLength);
|
||||
if (usernameLength && usernameStart + usernameLength < text.size() && text.at(usernameStart + usernameLength).isSpace()) {
|
||||
QStringRef username = text.midRef(usernameStart, usernameLength);
|
||||
if (username != contextBotUsername) {
|
||||
contextBotUsername = username.toString();
|
||||
PeerData *peer = App::peerByName(contextBotUsername);
|
||||
@@ -292,6 +292,7 @@ void FlatTextarea::getMentionHashtagBotCommandStart(QString &start, UserData *&c
|
||||
contextBot = 0;
|
||||
} else {
|
||||
start = text.mid(usernameStart + usernameLength + 1);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
contextBot = 0;
|
||||
|
Reference in New Issue
Block a user