Fix translation of replies to web-page previews.
This commit is contained in:
parent
f4455663fc
commit
5ba7b3906c
|
@ -1442,7 +1442,10 @@ bool MediaWebPage::replyPreviewLoaded() const {
|
|||
}
|
||||
|
||||
ItemPreview MediaWebPage::toPreview(ToPreviewOptions options) const {
|
||||
return { .text = notificationText() };
|
||||
return { .text = options.translated
|
||||
? parent()->translatedText()
|
||||
: parent()->originalText()
|
||||
};
|
||||
}
|
||||
|
||||
TextWithEntities MediaWebPage::notificationText() const {
|
||||
|
|
Loading…
Reference in New Issue