mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Fix crash in gifts repaint.
This commit is contained in:
@@ -1849,7 +1849,9 @@ void SendGiftBox(
|
||||
auto &packs = window->session().giftBoxStickersPacks();
|
||||
packs.updated() | rpl::start_with_next([=] {
|
||||
for (const auto &button : state->buttons) {
|
||||
button->update();
|
||||
if (const auto raw = button.get()) {
|
||||
raw->update();
|
||||
}
|
||||
}
|
||||
}, raw->lifetime());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user