From 2a9751035e5aa10319a3d68d9d02c3f92102ced3 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 7 Nov 2024 08:24:05 +1000 Subject: [PATCH] Fix context menu text being different based on where right click occurred for emojis (#9215) Co-authored-by: khuddite --- app/spell_check.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/spell_check.ts b/app/spell_check.ts index 4b512bc4ed26..6d0d8f810746 100644 --- a/app/spell_check.ts +++ b/app/spell_check.ts @@ -97,7 +97,11 @@ export const setup = ( const isMisspelled = Boolean(params.misspelledWord); const isLink = Boolean(params.linkURL); const isImage = - params.mediaType === 'image' && params.hasImageContents && params.srcURL; + params.mediaType === 'image' && + params.hasImageContents && + params.srcURL && + !editFlags.canCopy; // emoji should not be treated as an image + const showMenu = params.isEditable || editFlags.canCopy || isLink || isImage;