diff --git a/Telegram/SourceFiles/boxes/peer_list_box.cpp b/Telegram/SourceFiles/boxes/peer_list_box.cpp index 0b903b878f..29619ad400 100644 --- a/Telegram/SourceFiles/boxes/peer_list_box.cpp +++ b/Telegram/SourceFiles/boxes/peer_list_box.cpp @@ -654,9 +654,13 @@ void PeerListRow::invalidatePixmapsCache() { } int PeerListRow::nameIconWidth() const { - return (special() || !_peer->isVerified()) + return special() ? 0 - : st::dialogsVerifiedIcon.width(); + : _peer->isVerified() + ? st::dialogsVerifiedIcon.width() + : _peer->isPremium() + ? st::dialogsPremiumIcon.width() + : 0; } void PeerListRow::paintNameIcon( @@ -665,7 +669,11 @@ void PeerListRow::paintNameIcon( int y, int outerWidth, bool selected) { - st::dialogsVerifiedIcon.paint(p, x, y, outerWidth); + if (_peer->isVerified()) { + st::dialogsVerifiedIcon.paint(p, x, y, outerWidth); + } else if (_peer->isPremium()) { + st::dialogsPremiumIcon.paint(p, x, y, outerWidth); + } } void PeerListRow::paintStatusText( diff --git a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp index 0f0ae7d68c..f940e922e8 100644 --- a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp @@ -513,9 +513,10 @@ void TopBarWidget::paintTopBar(Painter &p) { const auto peer = history->peer; const auto &text = peer->topBarNameText(); const auto badgeStyle = Ui::PeerBadgeStyle{ - &st::dialogsVerifiedIcon, // verified - &st::dialogsPremiumIcon, // premium - &st::attentionButtonFg }; + &st::dialogsVerifiedIcon, + &st::dialogsPremiumIcon, + &st::attentionButtonFg, + }; const auto badgeWidth = Ui::DrawPeerBadgeGetWidth( peer, p,