2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Set name / phone texts on-demand.

This commit is contained in:
John Preston
2022-08-09 14:12:19 +03:00
parent ceb7d5f238
commit 8bc807dc40
98 changed files with 426 additions and 260 deletions

View File

@@ -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))