From 87d9b6066d7059a16accbc378ccb319d4d477e8f Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Mon, 22 Apr 2024 12:33:21 -1000 Subject: [PATCH 1/3] Format ISO string correctly when missing reportAction to find most recent --- src/libs/ReportActionsUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 97b2b62391c4..a5ee7f65f102 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -27,6 +27,7 @@ import Log from './Log'; import type {MessageElementBase, MessageTextElement} from './MessageElement'; import * as PersonalDetailsUtils from './PersonalDetailsUtils'; import type {OptimisticIOUReportAction} from './ReportUtils'; +import * as DateUtils from './DateUtils'; type LastVisibleMessage = { lastMessageTranslationKey?: string; @@ -726,7 +727,7 @@ function getReportAction(reportID: string, reportActionID: string): OnyxEntry Date: Mon, 22 Apr 2024 14:20:26 -1000 Subject: [PATCH 2/3] Fix import --- src/libs/ReportActionsUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index a5ee7f65f102..0eeba0b0807e 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -27,7 +27,7 @@ import Log from './Log'; import type {MessageElementBase, MessageTextElement} from './MessageElement'; import * as PersonalDetailsUtils from './PersonalDetailsUtils'; import type {OptimisticIOUReportAction} from './ReportUtils'; -import * as DateUtils from './DateUtils'; +import DateUtils from './DateUtils'; type LastVisibleMessage = { lastMessageTranslationKey?: string; @@ -727,7 +727,7 @@ function getReportAction(reportID: string, reportActionID: string): OnyxEntry Date: Mon, 22 Apr 2024 14:35:33 -1000 Subject: [PATCH 3/3] Prettier --- src/libs/ReportActionsUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 0eeba0b0807e..8a63a031f4e5 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -20,6 +20,7 @@ import type {Message, ReportActionBase, ReportActions} from '@src/types/onyx/Rep import type ReportAction from '@src/types/onyx/ReportAction'; import type {EmptyObject} from '@src/types/utils/EmptyObject'; import {isEmptyObject} from '@src/types/utils/EmptyObject'; +import DateUtils from './DateUtils'; import * as Environment from './Environment/Environment'; import isReportMessageAttachment from './isReportMessageAttachment'; import * as Localize from './Localize'; @@ -27,7 +28,6 @@ import Log from './Log'; import type {MessageElementBase, MessageTextElement} from './MessageElement'; import * as PersonalDetailsUtils from './PersonalDetailsUtils'; import type {OptimisticIOUReportAction} from './ReportUtils'; -import DateUtils from './DateUtils'; type LastVisibleMessage = { lastMessageTranslationKey?: string;