2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Don't show premium star when premium unavailable.

This commit is contained in:
John Preston
2022-06-08 16:53:16 +04:00
parent aaf1383304
commit 916f86b401
14 changed files with 75 additions and 75 deletions

View File

@@ -927,17 +927,13 @@ QPointer<Ui::RpWidget> Premium::createPinnedToBottom(
}, status->lifetime());
const auto session = &_controller->session();
auto premiumPossible = session->account().appConfig().value(
) | rpl::map([=] {
return session->premiumPossible();
});
rpl::combine(
terms->heightValue(),
button->heightValue(),
status->heightValue(),
std::move(text),
Data::AmPremiumValue(session),
std::move(premiumPossible)
session->premiumPossibleValue()
) | rpl::start_with_next([=](
int termsHeight,
int buttonHeight,