feat: implement AyuForward

This commit is contained in:
bleizix
2025-07-07 01:54:45 +05:00
committed by GitHub
parent 0cd2617576
commit e097a5de58
29 changed files with 1084 additions and 18 deletions
+12
View File
@@ -1386,6 +1386,18 @@ Data::ForumTopic *PeerData::forumTopicFor(MsgId rootId) const {
return nullptr;
}
bool PeerData::isAyuNoForwards() const {
if (const auto user = asUser()) {
return false;
} else if (const auto channel = asChannel()) {
return channel->isAyuNoForwards();
} else if (const auto chat = asChat()) {
return chat->isAyuNoForwards();
}
return true;
}
bool PeerData::allowsForwarding() const {
if (isUser()) {
return true;