mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()
|
const auto stripExternal = peer->isChat()
|
||||||
|| peer->isMegagroup()
|
|| peer->isMegagroup()
|
||||||
|| (user && !isBot && !isPremium);
|
|| (user && !isBot && !isPremium);
|
||||||
const auto limit = Data::PremiumLimits(&peer->session())
|
auto result = TextWithEntities{ value };
|
||||||
.aboutLengthDefault();
|
|
||||||
const auto used = (!user || isPremium || value.size() <= limit)
|
|
||||||
? value
|
|
||||||
: value.mid(0, limit) + "...";
|
|
||||||
auto result = TextWithEntities{ used };
|
|
||||||
TextUtilities::ParseEntities(result, flags);
|
TextUtilities::ParseEntities(result, flags);
|
||||||
if (stripExternal) {
|
if (stripExternal) {
|
||||||
StripExternalLinks(result);
|
StripExternalLinks(result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue