2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Return chat type icons.

This commit is contained in:
John Preston
2024-12-20 12:17:26 +04:00
parent 5c301353ec
commit b61e3b580d
3 changed files with 12 additions and 3 deletions

View File

@@ -1390,6 +1390,11 @@ void InnerWidget::paintPeerSearchResult(
const auto position = rectForName.topLeft();
const auto skip = result->badge.drawVerified(p, position, st);
rectForName.setLeft(position.x() + skip + st::dialogsChatTypeSkip);
} else if (const auto chatTypeIcon = Ui::ChatTypeIcon(peer, context)) {
chatTypeIcon->paint(p, rectForName.topLeft(), context.width);
rectForName.setLeft(rectForName.left()
+ chatTypeIcon->width()
+ st::dialogsChatTypeSkip);
}
const auto badgeWidth = result->badge.drawGetWidth(
p,