mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fixed links in service message about requested peers from bot.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user