2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show chats list badge only for non-empty calls.

This commit is contained in:
John Preston
2020-12-06 17:28:27 +04:00
parent fa55fd7dd7
commit 732bc38e8e
8 changed files with 38 additions and 12 deletions

View File

@@ -238,13 +238,13 @@ void BasicRow::paintUserpic(
if (historyForCornerBadge->peer->isUser()) {
return;
}
p.setOpacity(shown);
const auto actionPainter = historyForCornerBadge->sendActionPainter();
const auto bg = active
? st::dialogsBgActive
: st::dialogsBg;
const auto size = st::dialogsCallBadgeSize;
const auto skip = st::dialogsCallBadgeSkip;
p.setOpacity(shown);
p.translate(st::dialogsPadding);
actionPainter->paintSpeaking(
p,
@@ -254,6 +254,7 @@ void BasicRow::paintUserpic(
bg,
now);
p.translate(-st::dialogsPadding);
p.setOpacity(1.);
}
Row::Row(Key key, int pos) : _id(key), _pos(pos) {