You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libs/ReportUtils.ts
+36-14Lines changed: 36 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -7955,16 +7955,34 @@ function buildOptimisticGroupChatReport(
7955
7955
});
7956
7956
}
7957
7957
7958
+
type BuildOptimisticCreatedReportActionParams = {
7959
+
emailCreatingAction: string;
7960
+
created?: string;
7961
+
optimisticReportActionID?: string;
7962
+
// TODO: currentUserAccountID, currentUserDisplayName, currentUserEmail, currentUserAvatar will be required eventually. Refactor issue: https://github.com/Expensify/App/issues/66412
7963
+
currentUserAccountID?: number;
7964
+
currentUserDisplayName?: string;
7965
+
currentUserEmail?: string;
7966
+
currentUserAvatar?: AvatarSource;
7967
+
};
7968
+
7958
7969
/**
7959
7970
* Returns the necessary reportAction onyx data to indicate that the chat has been created optimistically
7960
-
* @param [created] - Action created time
7961
7971
*/
7962
-
function buildOptimisticCreatedReportAction(emailCreatingAction: string, created = DateUtils.getDBTime(), optimisticReportActionID?: string): OptimisticCreatedReportAction {
Copy file name to clipboardExpand all lines: src/libs/actions/IOU/Split.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -438,7 +438,7 @@ function startSplitBill({
438
438
constfilename=splitTransaction.receipt?.filename;
439
439
440
440
// Note: The created action must be optimistically generated before the IOU action so there's no chance that the created action appears after the IOU action in the chat
@@ -1335,7 +1335,7 @@ function createSplitsAndOnyxData({
1335
1335
}
1336
1336
1337
1337
// Note: The created action must be optimistically generated before the IOU action so there's no chance that the created action appears after the IOU action in the chat
// Onyx.set is used on the optimistic data so that it is present before navigating to the workspace room. With Onyx.merge the workspace room reportID is not present when
3959
3959
// fetchReportIfNeeded is called on the ReportScreen, so openReport is called which is unnecessary since the optimistic data will be stored in Onyx.
constoptimisticAddCommentReport=ReportUtils.buildOptimisticTaskCommentReportAction(taskReportID,title,assigneeAccountID,`task for ${title}`,parentReportID);
0 commit comments