mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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