Implement upcoming auction preview box.

This commit is contained in:
John Preston
2025-12-02 14:39:43 +04:00
parent b08cf75f0b
commit 65b3a36984
11 changed files with 247 additions and 93 deletions

View File

@@ -1342,12 +1342,10 @@ void GenericCreditsEntryBox(
style);
};
const auto canResell = CanResellGift(session, e);
AddUniqueGiftCover(
content,
rpl::single(*uniqueGift),
{},
std::move(price),
canResell ? std::move(change) : Fn<void()>());
AddUniqueGiftCover(content, rpl::single(*uniqueGift), {
.resalePrice = std::move(price),
.resaleClick = canResell ? std::move(change) : Fn<void()>(),
});
AddSkip(content, st::defaultVerticalListSkip * 2);