From 676e85983dc79a9e42f125e6de0f76164f85422e Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 2 Jan 2024 13:02:34 +0400 Subject: [PATCH] Don't cut bio value, show what server returned. --- Telegram/SourceFiles/info/profile/info_profile_values.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_values.cpp b/Telegram/SourceFiles/info/profile/info_profile_values.cpp index 6c7b4ac2b0..e66a9839b6 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_values.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_values.cpp @@ -203,12 +203,7 @@ TextWithEntities AboutWithEntities( const auto stripExternal = peer->isChat() || peer->isMegagroup() || (user && !isBot && !isPremium); - const auto limit = Data::PremiumLimits(&peer->session()) - .aboutLengthDefault(); - const auto used = (!user || isPremium || value.size() <= limit) - ? value - : value.mid(0, limit) + "..."; - auto result = TextWithEntities{ used }; + auto result = TextWithEntities{ value }; TextUtilities::ParseEntities(result, flags); if (stripExternal) { StripExternalLinks(result);