Fix crash in gifts repaint.

This commit is contained in:
John Preston 2025-03-21 18:12:32 +04:00
parent 7312e34f46
commit 8b2a549fab

View file

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