mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix quote-reply to album captions.
This commit is contained in:
parent
2e2d8d2af3
commit
8b86f12c23
1 changed files with 3 additions and 2 deletions
|
@ -3054,7 +3054,8 @@ TextForMimeData Message::selectedText(TextSelection selection) const {
|
|||
}
|
||||
|
||||
SelectedQuote Message::selectedQuote(TextSelection selection) const {
|
||||
const auto item = data();
|
||||
const auto textItem = this->textItem();
|
||||
const auto item = textItem ? textItem : data().get();
|
||||
const auto &translated = item->translatedText();
|
||||
const auto &original = item->originalText();
|
||||
if (&translated != &original
|
||||
|
@ -3068,7 +3069,7 @@ SelectedQuote Message::selectedQuote(TextSelection selection) const {
|
|||
const auto textSelection = mediaBefore
|
||||
? media->skipSelection(selection)
|
||||
: selection;
|
||||
return FindSelectedQuote(text(), textSelection, data());
|
||||
return FindSelectedQuote(text(), textSelection, item);
|
||||
} else if (const auto media = this->media()) {
|
||||
if (media->isDisplayed() || isHiddenByGroup()) {
|
||||
return media->selectedQuote(selection);
|
||||
|
|
Loading…
Add table
Reference in a new issue