mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Version 4.2.3: Fix possible crash in premium section.
This commit is contained in:
@@ -1650,7 +1650,10 @@ QPointer<Ui::RpWidget> Premium::createPinnedToBottom(
|
||||
_radioGroup->setChangedCallback([=](int value) {
|
||||
const auto options =
|
||||
_controller->session().api().premium().subscriptionOptions();
|
||||
Expects(value < options.size() && value >= 0);
|
||||
if (options.empty()) {
|
||||
return;
|
||||
}
|
||||
Assert(value < options.size() && value >= 0);
|
||||
auto text = tr::lng_premium_subscribe_button(
|
||||
tr::now,
|
||||
lt_cost,
|
||||
|
Reference in New Issue
Block a user