mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Don't allow gifting premium if can't buy.
This commit is contained in:
@@ -1124,7 +1124,8 @@ void Filler::addGiftPremium() {
|
||||
|| user->isBot()
|
||||
|| user->isNotificationsUser()
|
||||
|| !user->canReceiveGifts()
|
||||
|| user->isRepliesChat()) {
|
||||
|| user->isRepliesChat()
|
||||
|| !user->session().premiumCanBuy()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user