Skip to content

Commit

Permalink
Merge pull request #24333 from Expensify/revert-24221-fix-22019
Browse files Browse the repository at this point in the history
Revert "hide mark ask unread with read message"
  • Loading branch information
PauloGasparSv authored Aug 9, 2023
2 parents 15bb592 + f05565e commit c74032f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export default [
icon: Expensicons.Mail,
successIcon: Expensicons.Checkmark,
shouldShow: (type, reportAction, isArchivedRoom, betas, anchor, isChronosReport, reportID, isPinnedChat, isUnreadChat) =>
!isUnreadChat && (type === CONTEXT_MENU_TYPES.REPORT_ACTION || type === CONTEXT_MENU_TYPES.REPORT),
type === CONTEXT_MENU_TYPES.REPORT_ACTION || (type === CONTEXT_MENU_TYPES.REPORT && !isUnreadChat),
onPress: (closePopover, {reportAction, reportID}) => {
Report.markCommentAsUnread(reportID, reportAction.created);
if (closePopover) {
Expand Down
7 changes: 1 addition & 6 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ function ReportActionItem(props) {
const textInputRef = useRef();
const popoverAnchorRef = useRef();
const downloadedPreviews = useRef([]);
const isPinnedChat = lodashGet(props, 'report.isPinned', false);

useEffect(
() => () => {
Expand Down Expand Up @@ -219,11 +218,9 @@ function ReportActionItem(props) {
toggleContextMenuFromActiveReportAction,
ReportUtils.isArchivedRoom(props.report),
ReportUtils.chatIncludesChronos(props.report),
isPinnedChat,
props.shouldDisplayNewMarker,
);
},
[props.draftMessage, props.action, props.report, toggleContextMenuFromActiveReportAction, props.shouldDisplayNewMarker, isPinnedChat],
[props.draftMessage, props.action, props.report, toggleContextMenuFromActiveReportAction],
);

const toggleReaction = useCallback(
Expand Down Expand Up @@ -532,8 +529,6 @@ function ReportActionItem(props) {
isVisible={hovered && !props.draftMessage && !hasErrors}
draftMessage={props.draftMessage}
isChronosReport={ReportUtils.chatIncludesChronos(props.report)}
isPinnedChat={isPinnedChat}
isUnreadChat={props.shouldDisplayNewMarker}
/>
<View
style={StyleUtils.getReportActionItemStyle(
Expand Down

0 comments on commit c74032f

Please sign in to comment.