Fix possible incorrect links in service messages.

This commit is contained in:
John Preston 2022-02-10 18:31:28 +03:00
parent 4f4ef941c6
commit b4a49de819
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
auto user = history()->owner().user(users[i].v);
result.links.push_back(user->createOpenLink());
auto linkText = Ui::Text::Link(user->name, QString());
auto linkText = Ui::Text::Link(user->name, 2 + i);
if (i == 0) {
result.text = linkText;
} else if (i + 1 == l) {