File tree 1 file changed +2
-1
lines changed 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ export default [
127
127
icon : Expensicons . LinkCopy ,
128
128
shouldShow : ( type , reportAction , betas , menuTarget ) => {
129
129
const isAttachment = ReportUtils . isReportMessageAttachment ( _ . last ( lodashGet ( reportAction , [ 'message' ] , [ { } ] ) ) ) ;
130
+
131
+ // Only hide the copylink menu item when context menu is opened over img element.
130
132
const isAttachmentTarget = lodashGet ( menuTarget , 'tagName' ) === 'IMG' && isAttachment ;
131
133
return Permissions . canUseCommentLinking ( betas ) && type === CONTEXT_MENU_TYPES . REPORT_ACTION && ! isAttachmentTarget ;
132
134
} ,
@@ -148,7 +150,6 @@ export default [
148
150
shouldShow : type => type === CONTEXT_MENU_TYPES . REPORT_ACTION ,
149
151
onPress : ( closePopover , { reportAction, reportID} ) => {
150
152
Report . markCommentAsUnread ( reportID , reportAction . sequenceNumber ) ;
151
- Report . setNewMarkerPosition ( reportID , reportAction . sequenceNumber ) ;
152
153
if ( closePopover ) {
153
154
hideContextMenu ( true , ReportActionComposeFocusManager . focus ) ;
154
155
}
You can’t perform that action at this time.
0 commit comments