mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 23:25:15 +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 = [&](
|
auto prepareRequestedPeer = [&](
|
||||||
const MTPDmessageActionRequestedPeer &action) {
|
const MTPDmessageActionRequestedPeer &action) {
|
||||||
auto result = PreparedServiceText{};
|
auto result = PreparedServiceText{};
|
||||||
result.links.push_back(fromLink());
|
result.links.push_back(history()->peer->createOpenLink());
|
||||||
|
|
||||||
const auto &list = action.vpeers().v;
|
const auto &list = action.vpeers().v;
|
||||||
for (auto i = 0, count = int(list.size()); i != count; ++i) {
|
for (auto i = 0, count = int(list.size()); i != count; ++i) {
|
||||||
@@ -4664,7 +4664,7 @@ void HistoryItem::setServiceMessageByAction(const MTPmessageAction &action) {
|
|||||||
lt_chat,
|
lt_chat,
|
||||||
result.text,
|
result.text,
|
||||||
lt_bot,
|
lt_bot,
|
||||||
Ui::Text::Link(history()->peer->name(), 2),
|
Ui::Text::Link(history()->peer->name(), 1),
|
||||||
Ui::Text::WithEntities);
|
Ui::Text::WithEntities);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user