2
0
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:
John Preston
2025-04-23 18:47:46 +04:00
parent 80fc58f83e
commit 3375ff6152
2 changed files with 80 additions and 30 deletions

View File

@@ -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);
}
};