mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 02:50:36 +00:00
Show and edit channel gifts notify settings.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user