diff --git a/Telegram/SourceFiles/payments/payments_form.cpp b/Telegram/SourceFiles/payments/payments_form.cpp index 91a555c3e7..50b22888d6 100644 --- a/Telegram/SourceFiles/payments/payments_form.cpp +++ b/Telegram/SourceFiles/payments/payments_form.cpp @@ -382,7 +382,7 @@ MTPInputInvoice Form::inputInvoice() const { } } const auto spendPeer = credits->spendPurposePeerId - ? _session->data().peer(credits->spendPurposePeerId) + ? _session->data().peerLoaded(credits->spendPurposePeerId) : nullptr; using Flag = MTPDinputStorePaymentStarsTopup::Flag; return MTP_inputInvoiceStars(