mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed links in service message about requested peers from bot.
This commit is contained in:
parent
6c083e88a3
commit
1f0ed3bb31
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue