diff --git a/Telegram/SourceFiles/info/profile/info_profile_values.cpp b/Telegram/SourceFiles/info/profile/info_profile_values.cpp index f797495078..6c7b4ac2b0 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_values.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_values.cpp @@ -208,7 +208,7 @@ TextWithEntities AboutWithEntities( const auto used = (!user || isPremium || value.size() <= limit) ? value : value.mid(0, limit) + "..."; - auto result = TextWithEntities{ value }; + auto result = TextWithEntities{ used }; TextUtilities::ParseEntities(result, flags); if (stripExternal) { StripExternalLinks(result); diff --git a/Telegram/SourceFiles/storage/localstorage.cpp b/Telegram/SourceFiles/storage/localstorage.cpp index c3f88807a2..2d1c5e9535 100644 --- a/Telegram/SourceFiles/storage/localstorage.cpp +++ b/Telegram/SourceFiles/storage/localstorage.cpp @@ -613,7 +613,7 @@ void writeBackground(const Data::WallPaper &paper, const QImage &image) { dst = dst.subspan(sizeof(qint32)); bytes::copy(dst, bytes::object_as_span(&height)); dst = dst.subspan(sizeof(qint32)); - const auto src = bytes::make_span(image.constBits(), srcsize); + const auto src = bytes::make_span(copy.constBits(), srcsize); if (srcsize == dstsize) { bytes::copy(dst, src); } else {