Removed display of right button for bots when there is unread badge.

This commit is contained in:
23rd
2024-11-29 16:03:42 +03:00
parent cdd7ff5c6d
commit 9822c56f1a
2 changed files with 8 additions and 8 deletions
@@ -144,9 +144,7 @@ int PaintBadges(
int pinnedIconTop,
bool narrow) {
auto initial = right;
if (const auto used = PaintRightButton(p, context)) {
return used - st::dialogsUnreadPadding;
} else if (badgesState.unread
if (badgesState.unread
&& !badgesState.unreadCounter
&& context.st->unreadMarkDiameter > 0) {
const auto d = context.st->unreadMarkDiameter;
@@ -188,6 +186,8 @@ int PaintBadges(
: QString::number(badgesState.unreadCounter);
const auto badge = PaintUnreadBadge(p, counter, right, top, st);
right -= badge.width() + st.padding;
} else if (const auto used = PaintRightButton(p, context)) {
return used - st::dialogsUnreadPadding;
} else if (displayPinnedIcon) {
const auto &icon = ThreeStateIcon(
st::dialogsPinnedIcon,