mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Don't cut bio value, show what server returned.
This commit is contained in:
parent
7638f4cc3d
commit
676e85983d
1 changed files with 1 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue