Don't cut bio value, show what server returned.

This commit is contained in:
John Preston 2024-01-02 13:02:34 +04:00
parent 7638f4cc3d
commit 676e85983d
1 changed files with 1 additions and 6 deletions

View File

@ -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);