mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 03:50:43 +00:00
Removed ability to copy links in channels with restricted content.
This commit is contained in:
parent
9c3173e4bb
commit
9cd194e60e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user