mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Removed ability to copy links in channels with restricted content.
This commit is contained in:
@@ -2364,7 +2364,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!actionText.isEmpty()) {
|
||||
if (!actionText.isEmpty() && !hasCopyRestriction(item)) {
|
||||
_menu->addAction(
|
||||
actionText,
|
||||
[text = link->copyToClipboardText()] {
|
||||
|
||||
@@ -1001,7 +1001,9 @@ base::unique_qptr<Ui::PopupMenu> FillContextMenu(
|
||||
}
|
||||
}
|
||||
|
||||
AddCopyLinkAction(result, link);
|
||||
if (!list->hasCopyRestriction(view->data())) {
|
||||
AddCopyLinkAction(result, link);
|
||||
}
|
||||
AddMessageActions(result, request, list);
|
||||
|
||||
if (item) {
|
||||
|
||||
Reference in New Issue
Block a user