2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Add a distinct forum icon in chats list.

This commit is contained in:
John Preston
2022-10-25 16:40:54 +04:00
parent 76330eaaa6
commit 97d8aa0a0d
8 changed files with 38 additions and 19 deletions

View File

@@ -870,7 +870,9 @@ void Notification::updateNotifyDisplay() {
}
if (const auto chatTypeIcon = Dialogs::Ui::ChatTypeIcon(_history->peer)) {
chatTypeIcon->paint(p, rectForName.topLeft(), w);
rectForName.setLeft(rectForName.left() + st::dialogsChatTypeSkip);
rectForName.setLeft(rectForName.left()
+ chatTypeIcon->width()
+ st::dialogsChatTypeSkip);
}
}