mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
return _media->toPreview(options);
|
||||||
} else if (!emptyText()) {
|
} else if (!emptyText()) {
|
||||||
return {
|
return {
|
||||||
.text = st::wrap_rtl(options.translated
|
// wrap_rtl "adds" a newline in case text starts with quote.
|
||||||
? translatedText()
|
// So we remove those by DialogsPreviewText call.
|
||||||
: _text)
|
.text = st::wrap_rtl(Dialogs::Ui::DialogsPreviewText(
|
||||||
|
options.translated ? translatedText() : _text))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Add table
Reference in a new issue