mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Returned back freedom to copy links even in non-forwardable histories.
This reverts commitsb64c610abb
and9cd194e60e
.
This commit is contained in:
parent
e646b4dc9a
commit
224fdc1864
3 changed files with 3 additions and 5 deletions
|
@ -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()] {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue