From 20a5950f994e4e9384107b429ce6c07a5792b65c Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 12 Sep 2022 18:56:03 +0400 Subject: [PATCH] Fix premium star / status in accounts list. --- Telegram/SourceFiles/settings/settings_information.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/settings/settings_information.cpp b/Telegram/SourceFiles/settings/settings_information.cpp index 303aa3dd7..ab159ac2e 100644 --- a/Telegram/SourceFiles/settings/settings_information.cpp +++ b/Telegram/SourceFiles/settings/settings_information.cpp @@ -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([=](