2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Don't show premium stickers if premium blocked.

This commit is contained in:
John Preston
2022-06-08 10:28:45 +04:00
parent e925acc622
commit 86889cf1ef
7 changed files with 185 additions and 94 deletions

View File

@@ -422,6 +422,7 @@ void ReactionsSettingsBox(
};
auto firstCheckedButton = (Ui::RpWidget*)(nullptr);
const auto premiumPossible = controller->session().premiumPossible();
for (const auto &r : reactions.list(Data::Reactions::Type::Active)) {
const auto button = Settings::AddButton(
container,
@@ -429,7 +430,7 @@ void ReactionsSettingsBox(
st::settingsButton);
const auto premium = r.premium;
if (premium && !controller->session().premiumPossible()) {
if (premium && !premiumPossible) {
continue;
}