Fix premium star / status in accounts list.

This commit is contained in:
John Preston 2022-09-12 18:56:03 +04:00
parent 40bdcd7ebc
commit 20a5950f99

View file

@ -135,7 +135,9 @@ ComposedBadge::ComposedBadge(
rpl::combine(
_unreadWidth.events_starting_with(_unread ? _unread->width() : 0),
_premiumWidth.events_starting_with(0),
_premiumWidth.events_starting_with(_badge.widget()
? _badge.widget()->width()
: 0),
_text.value(),
button->sizeValue()
) | rpl::start_with_next([=](