2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

photos redesign improved

This commit is contained in:
John Preston
2015-12-09 22:09:29 +03:00
parent dda1ad987d
commit 978554ce28
5 changed files with 67 additions and 397 deletions

View File

@@ -207,7 +207,7 @@ void NotifyWindow::updateNotifyDisplay() {
item->drawInDialog(p, r, active, textCachedFor, itemTextCache);
} else {
p.setFont(st::dlgHistFont->f);
if (item->displayFromName() && !item->fromChannel()) {
if (item->hasFromName() && !item->fromChannel()) {
itemTextCache.setText(st::dlgHistFont, item->from()->name);
p.setPen(st::dlgSystemColor->p);
itemTextCache.drawElided(p, r.left(), r.top(), r.width(), st::dlgHistFont->height);