Fix mute icon overlapping the verified badge in dialogs

This commit is contained in:
John Preston
2026-07-06 21:56:04 +04:00
parent 96575a7080
commit 87451e7d9f
@@ -932,12 +932,6 @@ void PaintRow(
context.width,
text);
} else if (from) {
auto badgeWidth = 0;
if ((history || sublist) && !context.search) {
const auto widthBefore = rectForName.width();
paintPeerBadge(rowName.maxWidth());
badgeWidth = widthBefore - rectForName.width();
}
const auto drawMuteIcon = DialogsMuteIcon.value()
&& thread
&& thread->muted();
@@ -951,6 +945,12 @@ void PaintRow(
- muteIcon.width()
- st::dialogsMuteIconSkip);
}
auto badgeWidth = 0;
if ((history || sublist) && !context.search) {
const auto widthBefore = rectForName.width();
paintPeerBadge(rowName.maxWidth());
badgeWidth = widthBefore - rectForName.width();
}
p.setPen(context.active
? st::dialogsNameFgActive
: context.selected