2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Move Blocked users to Privacy in Settings.

This commit is contained in:
John Preston
2022-12-29 13:30:41 +04:00
parent 80e932a083
commit 1acfe441e1
2 changed files with 34 additions and 21 deletions

View File

@@ -397,7 +397,11 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
tr::lng_info_mobile_label(),
PhoneOrHiddenValue(user),
tr::lng_profile_copy_phone(tr::now)).text;
const auto hook = [=](Ui::FlatLabel::ContextMenuRequest request) {
using namespace Ui;
const auto hook = [=](FlatLabel::ContextMenuRequest request) {
if (user->phone().isEmpty()) {
return;
}
phoneLabel->fillContextMenu(request);
AddPhoneMenu(request.menu, user);
};