mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Parse link entities into Data::Invoice.
This commit is contained in:
@@ -16,7 +16,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ui/wrap/fade_wrap.h"
|
||||
#include "ui/text/format_values.h"
|
||||
#include "ui/text/text_utilities.h"
|
||||
#include "ui/text/text_entity.h"
|
||||
#include "countries/countries_instance.h"
|
||||
#include "lang/lang_keys.h"
|
||||
#include "base/unixtime.h"
|
||||
@@ -218,9 +217,7 @@ void FormSummary::setupCover(not_null<VerticalLayout*> layout) {
|
||||
st::paymentsTitle);
|
||||
state->description = CreateChild<FlatLabel>(
|
||||
cover,
|
||||
rpl::single(TextUtilities::ParseEntities(
|
||||
_invoice.cover.description,
|
||||
TextParseLinks)),
|
||||
rpl::single(_invoice.cover.description),
|
||||
st::paymentsDescription);
|
||||
state->seller = CreateChild<FlatLabel>(
|
||||
cover,
|
||||
|
@@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "ui/text/text_entity.h"
|
||||
|
||||
namespace Payments::Ui {
|
||||
|
||||
struct LabeledPrice {
|
||||
@@ -16,7 +18,7 @@ struct LabeledPrice {
|
||||
|
||||
struct Cover {
|
||||
QString title;
|
||||
QString description;
|
||||
TextWithEntities description;
|
||||
QString seller;
|
||||
QImage thumbnail;
|
||||
};
|
||||
|
Reference in New Issue
Block a user