Check noforwards of specific messages in shared media.

This commit is contained in:
John Preston 2021-12-30 16:15:30 +03:00
parent ecca60afe4
commit a15ef8bbc2

View file

@ -1643,7 +1643,7 @@ void ListWidget::showContextMenu(
document,
DocumentSaveClickHandler::Mode::ToNewFile);
});
if (_peer->allowsForwarding()) {
if (_peer->allowsForwarding() && !item->forbidsForward()) {
_contextMenu->addAction(
(isVideo
? tr::lng_context_save_video(tr::now)