mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 23:13:11 +02:00
Fix blockquote/code captions to media in reply bar.
This commit is contained in:
parent
fb2274c58d
commit
265b7904a8
1 changed files with 9 additions and 9 deletions
|
@ -922,9 +922,9 @@ ItemPreview MediaPhoto::toPreview(ToPreviewOptions options) const {
|
|||
const auto type = tr::lng_in_dlg_photo(tr::now);
|
||||
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
||||
? TextWithEntities()
|
||||
: options.translated
|
||||
? parent()->translatedText()
|
||||
: parent()->originalText();
|
||||
: Dialogs::Ui::DialogsPreviewText(options.translated
|
||||
? parent()->translatedText()
|
||||
: parent()->originalText());
|
||||
const auto hasMiniImages = !images.empty();
|
||||
return {
|
||||
.text = WithCaptionNotificationText(type, caption, hasMiniImages),
|
||||
|
@ -1194,9 +1194,9 @@ ItemPreview MediaFile::toPreview(ToPreviewOptions options) const {
|
|||
}();
|
||||
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
||||
? TextWithEntities()
|
||||
: options.translated
|
||||
? parent()->translatedText()
|
||||
: parent()->originalText();
|
||||
: Dialogs::Ui::DialogsPreviewText(options.translated
|
||||
? parent()->translatedText()
|
||||
: parent()->originalText());
|
||||
const auto hasMiniImages = !images.empty();
|
||||
return {
|
||||
.text = WithCaptionNotificationText(type, caption, hasMiniImages),
|
||||
|
@ -2199,9 +2199,9 @@ ItemPreview MediaInvoice::toPreview(ToPreviewOptions options) const {
|
|||
const auto type = ComputeAlbumCountsString(counts);
|
||||
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
||||
? TextWithEntities()
|
||||
: options.translated
|
||||
? parent()->translatedText()
|
||||
: parent()->originalText();
|
||||
: Dialogs::Ui::DialogsPreviewText(options.translated
|
||||
? parent()->translatedText()
|
||||
: parent()->originalText());
|
||||
const auto hasMiniImages = !images.empty();
|
||||
auto nice = Ui::Text::Colorized(
|
||||
Ui::CreditsEmojiSmall(&parent()->history()->session()));
|
||||
|
|
Loading…
Add table
Reference in a new issue