Returned back freedom to copy links even in non-forwardable histories.

This reverts commits b64c610abb
and 9cd194e60e.
This commit is contained in:
23rd 2024-10-15 13:03:21 +03:00
parent e646b4dc9a
commit 224fdc1864
3 changed files with 3 additions and 5 deletions

View file

@ -2848,7 +2848,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
}
}
}
if (!actionText.isEmpty() && !hasCopyRestriction(item)) {
if (!actionText.isEmpty()) {
_menu->addAction(
actionText,
[text = link->copyToClipboardText()] {

View file

@ -1266,9 +1266,7 @@ base::unique_qptr<Ui::PopupMenu> FillContextMenu(
}
}
if (!view || !list->hasCopyRestriction(view->data())) {
AddCopyLinkAction(result, link);
}
AddCopyLinkAction(result, link);
AddMessageActions(result, request, list);
const auto wasAmount = result->actions().size();

View file

@ -1026,7 +1026,7 @@ void ListWidget::showContextMenu(
}
}
}
} else if (link && !_provider->hasSelectRestriction()) {
} else if (link) {
const auto actionText = link->copyToClipboardContextItemText();
if (!actionText.isEmpty()) {
_contextMenu->addAction(