Fixed links in service message about requested peers from bot.

This commit is contained in:
23rd 2024-03-14 20:36:19 +03:00
parent 6c083e88a3
commit 1f0ed3bb31

View file

@ -4628,7 +4628,7 @@ void HistoryItem::setServiceMessageByAction(const MTPmessageAction &action) {
auto prepareRequestedPeer = [&](
const MTPDmessageActionRequestedPeer &action) {
auto result = PreparedServiceText{};
result.links.push_back(fromLink());
result.links.push_back(history()->peer->createOpenLink());
const auto &list = action.vpeers().v;
for (auto i = 0, count = int(list.size()); i != count; ++i) {
@ -4664,7 +4664,7 @@ void HistoryItem::setServiceMessageByAction(const MTPmessageAction &action) {
lt_chat,
result.text,
lt_bot,
Ui::Text::Link(history()->peer->name(), 2),
Ui::Text::Link(history()->peer->name(), 1),
Ui::Text::WithEntities);
return result;
};