diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index bedf78abf6..c0a776cdc3 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -534,10 +534,7 @@ base::options::toggle ShowPeerIdBelowAbout({ tr::lng_info_hours_label(), st::infoLabel); label->setAttribute(Qt::WA_TransparentForMouseEvents); - const auto link = Ui::CreateChild( - labelWrap, - QString()); - rpl::combine( + auto linkText = rpl::combine( state->nonTrivial.value(), state->hours.value(), state->mine.value(), @@ -552,10 +549,12 @@ base::options::toggle ShowPeerIdBelowAbout({ : my ? tr::lng_info_hours_my_time() : tr::lng_info_hours_local_time(); - }) | rpl::flatten_latest( - ) | rpl::start_with_next([=](const QString &text) { - link->setText(text); - }, link->lifetime()); + }) | rpl::flatten_latest(); + const auto link = Ui::CreateChild( + labelWrap, + std::move(linkText), + st::defaultTableSmallButton); + link->setTextTransform(Ui::RoundButton::TextTransform::NoTransform); link->setClickedCallback([=] { state->myTimezone = !state->myTimezone.current(); state->expanded = true;