Skip to content

Commit 4274890

Browse files
committed
[TF][FIX] drop BillingController.isReady() calls in StarsController after upstream rebase
1 parent be41c01 commit 4274890

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

TMessagesProj/src/main/java/org/telegram/ui/Stars/StarsController.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ private boolean isInvoiceBillingDisabled(TLRPC.InputPeer purposePeer) {
745745

746746
public boolean canBuy(TLRPC.InputPeer purposePeer) {
747747
if (purposePeer != null && isInvoiceBillingDisabled(purposePeer)) {
748-
return BillingController.getInstance().isReady();
748+
return false;
749749
}
750750

751751
return true;
@@ -839,17 +839,9 @@ public void buy(
839839
return;
840840
}
841841

842-
if (!BillingController.getInstance().isReady()) {
843-
if (whenDone != null) {
844-
whenDone.run(false, "INVOICE DISABLED");
845-
}
846-
return;
842+
if (whenDone != null) {
843+
whenDone.run(false, "INVOICE DISABLED");
847844
}
848-
849-
final TLRPC.TL_inputStorePaymentStarsTopup payload = new TLRPC.TL_inputStorePaymentStarsTopup();
850-
payload.stars = option.stars;
851-
payload.currency = option.currency;
852-
payload.amount = option.amount;
853845
}
854846

855847
public void buyGift(Activity activity, TL_stars.TL_starsGiftOption option, long user_id, Utilities.Callback2<Boolean, String> whenDone) {

0 commit comments

Comments
 (0)