2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Removed text commands.

This commit is contained in:
23rd
2022-01-07 02:04:26 +03:00
committed by John Preston
parent 2af3770b29
commit e1aa08b985
14 changed files with 26 additions and 29 deletions

View File

@@ -3015,8 +3015,8 @@ not_null<WebPageData*> Session::webpage(
void Session::webpageApplyFields(
not_null<WebPageData*> page,
const MTPDwebPage &data) {
auto description = TextWithEntities {
TextUtilities::Clean(qs(data.vdescription().value_or_empty()))
auto description = TextWithEntities{
qs(data.vdescription().value_or_empty())
};
const auto siteName = qs(data.vsite_name().value_or_empty());
auto parseFlags = TextParseLinks | TextParseMultiline | TextParseRichText;
@@ -3191,9 +3191,9 @@ void Session::gameApplyFields(
return;
}
game->accessHash = accessHash;
game->shortName = TextUtilities::Clean(shortName);
game->shortName = shortName;
game->title = TextUtilities::SingleLine(title);
game->description = TextUtilities::Clean(description);
game->description = description;
game->photo = photo;
game->document = document;
notifyGameUpdateDelayed(game);