mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash on empty gift receivers list.
This commit is contained in:
parent
993c0ee648
commit
7c1510b611
1 changed files with 1 additions and 0 deletions
|
@ -1014,6 +1014,7 @@ void GiftPremiumValidator::showChoosePeerBox(const QString &ref) {
|
||||||
if (users.empty()) {
|
if (users.empty()) {
|
||||||
show->showToast(
|
show->showToast(
|
||||||
tr::lng_settings_gift_premium_choose(tr::now));
|
tr::lng_settings_gift_premium_choose(tr::now));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
const auto giftBox = show->show(
|
const auto giftBox = show->show(
|
||||||
Box(GiftsBox, _controller, users, api, ref));
|
Box(GiftsBox, _controller, users, api, ref));
|
||||||
|
|
Loading…
Add table
Reference in a new issue