2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Fixed ability to copy shared links for channels with select restriction.

Fixed #28492.
This commit is contained in:
23rd
2024-10-14 11:23:45 +03:00
committed by John Preston
parent c5add2fca9
commit b64c610abb

View File

@@ -1026,7 +1026,7 @@ void ListWidget::showContextMenu(
} }
} }
} }
} else if (link) { } else if (link && !_provider->hasSelectRestriction()) {
const auto actionText = link->copyToClipboardContextItemText(); const auto actionText = link->copyToClipboardContextItemText();
if (!actionText.isEmpty()) { if (!actionText.isEmpty()) {
_contextMenu->addAction( _contextMenu->addAction(