Added general replies to admin log messages.

This commit is contained in:
23rd
2026-01-08 07:12:48 +03:00
parent 4f96812b90
commit e8566002d6
4 changed files with 8 additions and 10 deletions
@@ -374,6 +374,8 @@ ReplyFields ReplyFieldsFromMTP(
auto result = ReplyFields();
if (const auto peer = data.vreply_to_peer_id()) {
result.externalPeerId = peerFromMTP(*peer);
} else if (item->isAdminLogEntry()) {
result.externalPeerId = item->history()->peer->id;
}
const auto owner = &item->history()->owner();
if (const auto id = data.vreply_to_msg_id().value_or_empty()) {