mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Removed ability to copy links in channels with restricted content.
This commit is contained in:
parent
9c3173e4bb
commit
9cd194e60e
2 changed files with 4 additions and 2 deletions
Telegram/SourceFiles/history
|
@ -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…
Add table
Reference in a new issue