mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Removed display of right button for bots when there is unread badge.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user