mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Use correct phrases for the resold gifts.
This commit is contained in:
@@ -479,14 +479,16 @@ void BuyResaleGift(
|
||||
not_null<PeerData*> to,
|
||||
std::shared_ptr<Data::UniqueGift> gift,
|
||||
Fn<void(Payments::CheckoutResult)> done) {
|
||||
Expects(to->isUser());
|
||||
|
||||
auto formDone = [=](
|
||||
Payments::CheckoutResult result,
|
||||
const MTPUpdates *updates) {
|
||||
done(result);
|
||||
if (result == Payments::CheckoutResult::Paid) {
|
||||
AssertIsDebug(Refresh owners gifts list, refresh self list);
|
||||
gift->starsForResale = 0;
|
||||
to->owner().notifyGiftUpdate({
|
||||
.slug = gift->slug,
|
||||
.action = Data::GiftUpdate::Action::ResaleChange,
|
||||
});
|
||||
Ui::ShowResaleGiftBoughtToast(show, to, *gift);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user