Don't cut bio value, show what server returned.
This commit is contained in:
parent
7638f4cc3d
commit
676e85983d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue