Fixed ability to moderate messages from channel authors.

This commit is contained in:
23rd 2025-01-24 22:22:04 +03:00
parent 6f752357d7
commit 321490e528

View file

@ -72,6 +72,16 @@ ModerateOptions CalculateModerateOptions(const HistoryItemsList &items) {
if (peer != item->history()->peer) {
return {};
}
{
const auto author = item->author();
if (author == peer) {
return {};
} else if (const auto channel = author->asChannel()) {
if (channel->linkedChat() == peer) {
return {};
}
}
}
if (!item->suggestBanReport()) {
result.allCanBan = false;
}