mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Show phone number only in the chat top bar.
This commit is contained in:
@@ -332,7 +332,7 @@ void MainMenu::refreshBackground() {
|
||||
st::mainMenuCoverTextLeft,
|
||||
st::mainMenuCoverNameTop,
|
||||
std::max(
|
||||
st::semiboldFont->width(Auth().user()->nameText.toString()),
|
||||
st::semiboldFont->width(Auth().user()->nameText().toString()),
|
||||
st::normalFont->width(_phoneText)),
|
||||
st::semiboldFont->height * 2);
|
||||
|
||||
@@ -405,7 +405,7 @@ void MainMenu::paintEvent(QPaintEvent *e) {
|
||||
}
|
||||
p.setPen(st::mainMenuCoverFg);
|
||||
p.setFont(st::semiboldFont);
|
||||
Auth().user()->nameText.drawLeftElided(
|
||||
Auth().user()->nameText().drawLeftElided(
|
||||
p,
|
||||
st::mainMenuCoverTextLeft,
|
||||
st::mainMenuCoverNameTop,
|
||||
|
Reference in New Issue
Block a user