Skip to content

Commit 1b1879c

Browse files
Coments added and remove extra code
1 parent 1a84291 commit 1b1879c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/home/report/ContextMenu/ContextMenuActions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ export default [
127127
icon: Expensicons.LinkCopy,
128128
shouldShow: (type, reportAction, betas, menuTarget) => {
129129
const isAttachment = ReportUtils.isReportMessageAttachment(_.last(lodashGet(reportAction, ['message'], [{}])));
130+
131+
// Only hide the copylink menu item when context menu is opened over img element.
130132
const isAttachmentTarget = lodashGet(menuTarget, 'tagName') === 'IMG' && isAttachment;
131133
return Permissions.canUseCommentLinking(betas) && type === CONTEXT_MENU_TYPES.REPORT_ACTION && !isAttachmentTarget;
132134
},
@@ -148,7 +150,6 @@ export default [
148150
shouldShow: type => type === CONTEXT_MENU_TYPES.REPORT_ACTION,
149151
onPress: (closePopover, {reportAction, reportID}) => {
150152
Report.markCommentAsUnread(reportID, reportAction.sequenceNumber);
151-
Report.setNewMarkerPosition(reportID, reportAction.sequenceNumber);
152153
if (closePopover) {
153154
hideContextMenu(true, ReportActionComposeFocusManager.focus);
154155
}

0 commit comments

Comments
 (0)