Show and edit channel gifts notify settings.

This commit is contained in:
John Preston
2025-01-21 11:58:00 +04:00
parent c22d76e5be
commit fa4e74ffef
9 changed files with 217 additions and 70 deletions
+7
View File
@@ -659,6 +659,13 @@ bool PeerData::canManageGifts() const {
return isSelf();
}
bool PeerData::canTransferGifts() const {
if (const auto channel = asChannel()) {
return channel->amCreator();
}
return isSelf();
}
bool PeerData::canEditMessagesIndefinitely() const {
if (const auto user = asUser()) {
return user->isSelf();