diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index 9df27a1b0..7a2814479 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -1121,22 +1121,11 @@ object_ptr DetailsFiller::setupInfo() { if (user) { const auto copyUsername = Ui::CreateChild( usernameLine.text->parentWidget(), - user->isBot() - ? st::infoProfileLabeledButtonCopy - : st::infoProfileLabeledButtonQr); + st::infoProfileLabeledButtonQr); fitLabelToButton(copyUsername, usernameLine.text); copyUsername->setClickedCallback([=] { - if (!user->isBot()) { - controller->show( - Box(Ui::FillPeerQrBox, user, std::nullopt, nullptr)); - return false; - } - const auto link = user->session().createInternalLinkFull( - user->username()); - if (!link.isEmpty()) { - QGuiApplication::clipboard()->setText(link); - controller->showToast(tr::lng_username_copied(tr::now)); - } + controller->show( + Box(Ui::FillPeerQrBox, user, std::nullopt, nullptr)); return false; }); } else {