Fixed ability to copy original caption in admin log.

Fixed #17076.
This commit is contained in:
23rd 2021-10-08 05:57:26 +03:00 committed by John Preston
parent e2c5995a2e
commit eb5ba12ba3

View file

@ -1247,7 +1247,11 @@ void InnerWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
}));
}
}
if (msg && !link && (view->hasVisibleText() || mediaHasTextForCopy)) {
if (msg
&& !link
&& (view->hasVisibleText()
|| mediaHasTextForCopy
|| item->Has<HistoryMessageLogEntryOriginal>())) {
_menu->addAction(tr::lng_context_copy_text(tr::now), [=] {
copyContextText(itemId);
});