diff --git a/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp index 96e09b809..c8d39858e 100644 --- a/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp @@ -199,10 +199,18 @@ void AddParticipantsBoxController::addInviteLinkButton() { tr::lng_profile_add_via_link(), st::inviteViaLinkButton), style::margins(0, st::membersMarginTop, 0, 0)); - object_ptr( + + const auto icon = Ui::CreateChild( button->entity(), st::inviteViaLinkIcon, - st::inviteViaLinkIconPosition); + QPoint()); + button->entity()->heightValue( + ) | rpl::start_with_next([=](int height) { + icon->moveToLeft( + st::inviteViaLinkIconPosition.x(), + (height - st::inviteViaLinkIcon.height()) / 2); + }, icon->lifetime()); + button->entity()->setClickedCallback([=] { showBox(Box(_peer)); });