Added an icon for bots in the dialog list.

Fixes https://github.com/telegramdesktop/tdesktop/issues/1894 .
This commit is contained in:
23rd
2019-01-23 19:15:21 +03:00
committed by John Preston
parent d1cc09f40e
commit 299aa69058
5 changed files with 11 additions and 0 deletions
@@ -433,6 +433,14 @@ const style::icon *ChatTypeIcon(
: (selected
? st::dialogsChannelIconOver
: st::dialogsChannelIcon));
} else if (const auto user = peer->asUser()) {
if (user->isBot()) {
return &(active
? st::dialogsBotIconActive
: (selected
? st::dialogsBotIconOver
: st::dialogsBotIcon));
}
}
return nullptr;
}