2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use TextWithEntities().append(style::IconEmoji).

This commit is contained in:
John Preston
2025-04-24 17:24:21 +04:00
parent f2b888f9ae
commit bdf802e64a

View File

@@ -1071,8 +1071,7 @@ void PreviewWrap::paintEvent(QPaintEvent *e) {
auto result = Text::String(); auto result = Text::String();
result.setMarkedText( result.setMarkedText(
st::semiboldTextStyle, st::semiboldTextStyle,
TextWithEntities{ text }.append( TextWithEntities{ text }.append(st::giftBoxResaleTabsDropdown),
Ui::Text::IconEmoji(&st::giftBoxResaleTabsDropdown)),
kMarkupTextOptions); kMarkupTextOptions);
return result; return result;
} }