Fix crash on empty gift receivers list.

This commit is contained in:
John Preston 2024-08-01 12:55:23 +02:00
parent 993c0ee648
commit 7c1510b611

View file

@ -1014,6 +1014,7 @@ void GiftPremiumValidator::showChoosePeerBox(const QString &ref) {
if (users.empty()) {
show->showToast(
tr::lng_settings_gift_premium_choose(tr::now));
return;
}
const auto giftBox = show->show(
Box(GiftsBox, _controller, users, api, ref));