Shortened name draw code for compact chat list

This commit is contained in:
Eric Kotato 2020-06-28 23:04:20 +03:00
parent 215b302b09
commit 031addd76d

View file

@ -382,8 +382,7 @@ void paintOneLineRow(
}
if (!(from && (flags & Flag::SearchResult))) {
Ui::Text::String textStr;
textStr.setText(st::dialogsTextStyle, text, Ui::NameTextOptions());
auto textStr = Ui::Text::String{ st::dialogsTextStyle, text, Ui::NameTextOptions() };
textStr.drawElided(p, rectForName.left(), rectForName.top(), rectForName.width());
}
}