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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user