Skip to content

Commit

Permalink
Merge pull request #54791 from FitseTLT/fix-split-request-scroll-to-b…
Browse files Browse the repository at this point in the history
…ottom-not-working
  • Loading branch information
cead22 authored Feb 5, 2025
2 parents bce067e + fbb1cba commit 5f95bc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4880,7 +4880,8 @@ function getOrCreateOptimisticSplitChatReport(existingSplitChatReportID: string,
const existingChatReportID = existingSplitChatReportID || participants.at(0)?.reportID;

// Check if the report is available locally if we do have one
let existingSplitChatReport = existingChatReportID ? allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${existingChatReportID}`] : null;
const existingSplitChatOnyxData = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${existingChatReportID}`];
let existingSplitChatReport = existingChatReportID && existingSplitChatOnyxData ? {...existingSplitChatOnyxData} : undefined;

const allParticipantsAccountIDs = [...participantAccountIDs, currentUserAccountID];
if (!existingSplitChatReport) {
Expand Down

0 comments on commit 5f95bc2

Please sign in to comment.