Skip to content

Commit

Permalink
Version 5.10.7: Fix gifts scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 27, 2025
1 parent 6976e97 commit 99c547b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ void GiftButton::setDescriptor(const GiftDescriptor &descriptor, Mode mode) {
) | rpl::start_with_next([=](not_null<DocumentData*> document) {
setDocument(document);
}, lifetime());
_patterned = false;
_uniqueBackgroundCache = QImage();
_uniquePatternEmoji = nullptr;
_uniquePatternCache.clear();

if (mode != Mode::Full) {
_button = QRect();
Expand Down

0 comments on commit 99c547b

Please sign in to comment.