2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -271,6 +271,9 @@ void Cover::initViewers(rpl::producer<QString> title) {
BadgeValue(
_peer
) | rpl::start_with_next([=](Badge badge) {
if (badge == Badge::Premium && !_peer->session().premiumPossible()) {
badge = Badge::None;
}
setBadge(badge);
}, lifetime());
}