2
0
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:
John Preston
2024-01-02 00:12:51 +04:00
parent a4d7309209
commit 5e255e56eb
4 changed files with 9 additions and 3 deletions

View File

@@ -1124,7 +1124,8 @@ void Filler::addGiftPremium() {
|| user->isBot()
|| user->isNotificationsUser()
|| !user->canReceiveGifts()
|| user->isRepliesChat()) {
|| user->isRepliesChat()
|| !user->session().premiumCanBuy()) {
return;
}