Skip to content

Commit

Permalink
wip giveaway
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 13, 2023
1 parent 0ae2aee commit 55ba655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,12 @@ void Giveaway::ensureStickerCreated() const {
if (_sticker) {
return;
}
#if 0 // mtp
const auto &session = _parent->history()->session();
auto &packs = session.giftBoxStickersPacks();
if (const auto document = packs.lookup(_months)) {
#endif
if (const auto document = _document) {
if (const auto sticker = document->sticker()) {
const auto skipPremiumEffect = false;
_sticker.emplace(_parent, document, skipPremiumEffect, _parent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class Giveaway final : public Media {

[[nodiscard]] QMargins inBubblePadding() const;

DocumentData *_document = nullptr;
mutable std::optional<Sticker> _sticker;

Ui::Text::String _prizesTitle;
Expand Down

0 comments on commit 55ba655

Please sign in to comment.