mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix reply previews to blockquotes / codeblocks.
This commit is contained in:
parent
1f4a8d7eb6
commit
5a2667c71e
1 changed files with 4 additions and 3 deletions
|
@ -3454,9 +3454,10 @@ ItemPreview HistoryItem::toPreview(ToPreviewOptions options) const {
|
|||
return _media->toPreview(options);
|
||||
} else if (!emptyText()) {
|
||||
return {
|
||||
.text = st::wrap_rtl(options.translated
|
||||
? translatedText()
|
||||
: _text)
|
||||
// wrap_rtl "adds" a newline in case text starts with quote.
|
||||
// So we remove those by DialogsPreviewText call.
|
||||
.text = st::wrap_rtl(Dialogs::Ui::DialogsPreviewText(
|
||||
options.translated ? translatedText() : _text))
|
||||
};
|
||||
}
|
||||
return {};
|
||||
|
|
Loading…
Add table
Reference in a new issue