mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(
|
_menu->addAction(
|
||||||
actionText,
|
actionText,
|
||||||
[text = link->copyToClipboardText()] {
|
[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);
|
AddMessageActions(result, request, list);
|
||||||
|
|
||||||
const auto wasAmount = result->actions().size();
|
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();
|
const auto actionText = link->copyToClipboardContextItemText();
|
||||||
if (!actionText.isEmpty()) {
|
if (!actionText.isEmpty()) {
|
||||||
_contextMenu->addAction(
|
_contextMenu->addAction(
|
||||||
|
|
Loading…
Add table
Reference in a new issue