2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Display author photo / name in search results.

This commit is contained in:
John Preston
2017-09-05 20:21:56 +03:00
parent def97b3f70
commit c09fbcfeb3
9 changed files with 84 additions and 25 deletions

View File

@@ -664,7 +664,14 @@ void Notification::updateNotifyDisplay() {
QRect r(st::notifyPhotoPos.x() + st::notifyPhotoSize + st::notifyTextLeft, st::notifyItemTop + st::msgNameFont->height, itemWidth, 2 * st::dialogsTextFont->height);
if (_item) {
auto active = false, selected = false;
_item->drawInDialog(p, r, active, selected, textCachedFor, itemTextCache);
_item->drawInDialog(
p,
r,
active,
selected,
HistoryItem::DrawInDialog::Normal,
textCachedFor,
itemTextCache);
} else if (_forwardedCount > 1) {
p.setFont(st::dialogsTextFont);
if (_author) {