Skip to content

Commit c930009

Browse files
authored
Merge pull request #35769 from paultsimura/fix/35092-join-thread-iou
feat: Show "Join/Leave Thread" option for comment actions only
2 parents 47f2994 + 04b18c2 commit c930009

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,8 @@ const ContextMenuActions: ContextMenuAction[] = [
281281
const shouldDisplayThreadReplies = ReportUtils.shouldDisplayThreadReplies(reportAction, reportID);
282282
const subscribed = childReportNotificationPreference !== 'hidden';
283283
const isCommentAction = reportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.ADDCOMMENT && !ReportUtils.isThreadFirstChat(reportAction, reportID);
284-
const isReportPreviewAction = reportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.REPORTPREVIEW;
285-
const isIOUAction = reportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && !ReportActionsUtils.isSplitBillAction(reportAction);
286-
287284
const isWhisperAction = ReportActionsUtils.isWhisperAction(reportAction);
288-
return !subscribed && !isWhisperAction && (isCommentAction || isReportPreviewAction || isIOUAction) && (!isDeletedAction || shouldDisplayThreadReplies);
285+
return !subscribed && !isWhisperAction && isCommentAction && (!isDeletedAction || shouldDisplayThreadReplies);
289286
},
290287
onPress: (closePopover, {reportAction, reportID}) => {
291288
const childReportNotificationPreference = ReportUtils.getChildReportNotificationPreference(reportAction);

0 commit comments

Comments
 (0)