From 7954145d53969632c739289ad1063f1ad947a2b8 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 10 May 2024 18:19:08 +0800 Subject: [PATCH] don't optimistically include current user as participant when split with 1 user --- src/libs/actions/IOU.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index eb7b82800358..43a11934eaf5 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -3633,7 +3633,7 @@ function getOrCreateOptimisticSplitChatReport(existingSplitChatReportID: string, } // Otherwise, create a new 1:1 chat report - const splitChatReport = ReportUtils.buildOptimisticChatReport(allParticipantsAccountIDs); + const splitChatReport = ReportUtils.buildOptimisticChatReport(participantAccountIDs); return {existingSplitChatReport: null, splitChatReport}; }