diff --git a/Telegram/SourceFiles/info/bot/starref/info_bot_starref_common.cpp b/Telegram/SourceFiles/info/bot/starref/info_bot_starref_common.cpp index 18a9de42aa..b134eaf526 100644 --- a/Telegram/SourceFiles/info/bot/starref/info_bot_starref_common.cpp +++ b/Telegram/SourceFiles/info/bot/starref/info_bot_starref_common.cpp @@ -393,11 +393,7 @@ object_ptr MakeLinkLabel( const QString &link, const style::InputField *stOverride) { const auto &st = stOverride ? *stOverride : st::dialogsFilter; - const auto text = link.startsWith(u"https://"_q) - ? link.mid(8) - : link.startsWith(u"http://"_q) - ? link.mid(7) - : link; + const auto text = Ui::Text::StripUrlProtocol(link); const auto margins = st.textMargins; const auto height = st.heightMin; const auto skip = margins.left(); diff --git a/Telegram/lib_ui b/Telegram/lib_ui index e79c2cc66d..ca5daff64b 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit e79c2cc66de149d1193c26ad691fa5c834d1d4f7 +Subproject commit ca5daff64b73ca78763e02bcc44fffdec7e44727