2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Shortened name draw code for compact chat list

This commit is contained in:
RadRussianRus
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());
}
}