Shortened name draw code for compact chat list
This commit is contained in:
parent
215b302b09
commit
031addd76d
1 changed files with 1 additions and 2 deletions
|
|
@ -382,8 +382,7 @@ void paintOneLineRow(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(from && (flags & Flag::SearchResult))) {
|
if (!(from && (flags & Flag::SearchResult))) {
|
||||||
Ui::Text::String textStr;
|
auto textStr = Ui::Text::String{ st::dialogsTextStyle, text, Ui::NameTextOptions() };
|
||||||
textStr.setText(st::dialogsTextStyle, text, Ui::NameTextOptions());
|
|
||||||
textStr.drawElided(p, rectForName.left(), rectForName.top(), rectForName.width());
|
textStr.drawElided(p, rectForName.left(), rectForName.top(), rectForName.width());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue