diff --git a/Telegram/SourceFiles/settings/business/settings_chat_links.cpp b/Telegram/SourceFiles/settings/business/settings_chat_links.cpp index 262b671f6a..021a6c2075 100644 --- a/Telegram/SourceFiles/settings/business/settings_chat_links.cpp +++ b/Telegram/SourceFiles/settings/business/settings_chat_links.cpp @@ -792,14 +792,23 @@ void ChatLinks::setupContent( auto links = !username.isEmpty() ? make({ username, '+' + self->phone() }) : make({ '+' + self->phone() }); - Ui::AddDividerText( + auto label = object_ptr( content, tr::lng_chat_links_footer( lt_links, rpl::single(std::move(links)), Ui::Text::WithEntities), + st::boxDividerLabel); + label->setClickHandlerFilter([=](ClickHandlerPtr handler, auto) { + QGuiApplication::clipboard()->setText(handler->url()); + controller->showToast(tr::lng_chat_link_copied(tr::now)); + return false; + }); + content->add(object_ptr( + content, + std::move(label), st::settingsChatbotsBottomTextMargin, - RectPart::Top); + RectPart::Top)); Ui::ResizeFitChild(this, content); }