mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 07:23:02 +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 type = tr::lng_in_dlg_photo(tr::now);
|
||||||
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
||||||
? TextWithEntities()
|
? TextWithEntities()
|
||||||
: options.translated
|
: Dialogs::Ui::DialogsPreviewText(options.translated
|
||||||
? parent()->translatedText()
|
? parent()->translatedText()
|
||||||
: parent()->originalText();
|
: parent()->originalText());
|
||||||
const auto hasMiniImages = !images.empty();
|
const auto hasMiniImages = !images.empty();
|
||||||
return {
|
return {
|
||||||
.text = WithCaptionNotificationText(type, caption, hasMiniImages),
|
.text = WithCaptionNotificationText(type, caption, hasMiniImages),
|
||||||
|
@ -1194,9 +1194,9 @@ ItemPreview MediaFile::toPreview(ToPreviewOptions options) const {
|
||||||
}();
|
}();
|
||||||
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
||||||
? TextWithEntities()
|
? TextWithEntities()
|
||||||
: options.translated
|
: Dialogs::Ui::DialogsPreviewText(options.translated
|
||||||
? parent()->translatedText()
|
? parent()->translatedText()
|
||||||
: parent()->originalText();
|
: parent()->originalText());
|
||||||
const auto hasMiniImages = !images.empty();
|
const auto hasMiniImages = !images.empty();
|
||||||
return {
|
return {
|
||||||
.text = WithCaptionNotificationText(type, caption, hasMiniImages),
|
.text = WithCaptionNotificationText(type, caption, hasMiniImages),
|
||||||
|
@ -2199,9 +2199,9 @@ ItemPreview MediaInvoice::toPreview(ToPreviewOptions options) const {
|
||||||
const auto type = ComputeAlbumCountsString(counts);
|
const auto type = ComputeAlbumCountsString(counts);
|
||||||
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
const auto caption = (options.hideCaption || options.ignoreMessageText)
|
||||||
? TextWithEntities()
|
? TextWithEntities()
|
||||||
: options.translated
|
: Dialogs::Ui::DialogsPreviewText(options.translated
|
||||||
? parent()->translatedText()
|
? parent()->translatedText()
|
||||||
: parent()->originalText();
|
: parent()->originalText());
|
||||||
const auto hasMiniImages = !images.empty();
|
const auto hasMiniImages = !images.empty();
|
||||||
auto nice = Ui::Text::Colorized(
|
auto nice = Ui::Text::Colorized(
|
||||||
Ui::CreditsEmojiSmall(&parent()->history()->session()));
|
Ui::CreditsEmojiSmall(&parent()->history()->session()));
|
||||||
|
|
Loading…
Add table
Reference in a new issue