mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Set name / phone texts on-demand.
This commit is contained in:
@@ -950,7 +950,7 @@ void PeerMenuDeleteContact(
|
||||
const auto text = tr::lng_sure_delete_contact(
|
||||
tr::now,
|
||||
lt_contact,
|
||||
user->name);
|
||||
user->name());
|
||||
const auto deleteSure = [=](Fn<void()> &&close) {
|
||||
close();
|
||||
user->session().api().request(MTPcontacts_DeleteContacts(
|
||||
@@ -992,8 +992,8 @@ void PeerMenuShareContactBox(
|
||||
return;
|
||||
}
|
||||
auto recipient = peer->isUser()
|
||||
? peer->name
|
||||
: '\xAB' + peer->name + '\xBB';
|
||||
? peer->name()
|
||||
: '\xAB' + peer->name() + '\xBB';
|
||||
navigation->parentController()->show(
|
||||
Ui::MakeConfirmBox({
|
||||
.text = tr::lng_forward_share_contact(
|
||||
@@ -1084,7 +1084,7 @@ void PeerMenuBlockUserBox(
|
||||
: v::get<bool>(suggestReport);
|
||||
|
||||
const auto user = peer->asUser();
|
||||
const auto name = user ? user->shortName() : peer->name;
|
||||
const auto name = user ? user->shortName() : peer->name();
|
||||
if (user) {
|
||||
box->addRow(object_ptr<Ui::FlatLabel>(
|
||||
box,
|
||||
@@ -1130,7 +1130,7 @@ void PeerMenuBlockUserBox(
|
||||
tr::lng_delete_all_from_user(
|
||||
tr::now,
|
||||
lt_user,
|
||||
Ui::Text::Bold(peer->name),
|
||||
Ui::Text::Bold(peer->name()),
|
||||
Ui::Text::WithEntities),
|
||||
true,
|
||||
st::defaultBoxCheckbox))
|
||||
|
Reference in New Issue
Block a user