Message: Use full image for copy action (#5332)

This commit is contained in:
zubiden 2024-12-20 11:37:29 +01:00 committed by Alexander Zinchuk
parent 724f50bb59
commit f9a05956b7

View File

@ -45,7 +45,7 @@ export function getMessageCopyOptions(
const photo = getMessagePhoto(message)
|| (!getMessageWebPageVideo(message) ? getMessageWebPagePhoto(message) : undefined);
const contact = getMessageContact(message);
const mediaHash = photo ? getPhotoMediaHash(photo, 'inline') : undefined;
const mediaHash = photo ? getPhotoMediaHash(photo, 'full') : undefined;
const canImageBeCopied = canCopy && photo && (mediaHash || hasMediaLocalBlobUrl(photo))
&& CLIPBOARD_ITEM_SUPPORTED && !IS_SAFARI;
const selection = window.getSelection();