@@ -1873,6 +1873,7 @@ function getOptimisticChatReport(accountID: number, currentUserAccountID: number
18731873 return buildOptimisticChatReport ( {
18741874 participantList : [ accountID , currentUserAccountID ] ,
18751875 notificationPreference : CONST . REPORT . NOTIFICATION_PREFERENCE . ALWAYS ,
1876+ currentUserAccountID,
18761877 } ) ;
18771878}
18781879
@@ -1986,6 +1987,7 @@ function navigateToAndOpenReport(
19861987 newChat = buildOptimisticChatReport ( {
19871988 participantList : [ ...participantAccountIDs , currentUserAccountID ] ,
19881989 notificationPreference : CONST . REPORT . NOTIFICATION_PREFERENCE . HIDDEN ,
1990+ currentUserAccountID,
19891991 } ) ;
19901992 // We want to pass newChat here because if anything is passed in that param (even an existing chat), we will try to create a chat on the server
19911993 openReport ( { reportID : newChat ?. reportID , introSelected, reportActionID : '' , participantLoginList : userLogins , newReportObject : newChat , isSelfTourViewed, betas} ) ;
@@ -2026,6 +2028,7 @@ function navigateToAndOpenReportWithAccountIDs(participantAccountIDs: number[],
20262028 if ( ! chat ) {
20272029 newChat = buildOptimisticChatReport ( {
20282030 participantList : [ ...participantAccountIDs , currentUserAccountID ] ,
2031+ currentUserAccountID,
20292032 } ) ;
20302033 // We want to pass newChat here because if anything is passed in that param (even an existing chat), we will try to create a chat on the server
20312034 openReport ( {
@@ -2091,6 +2094,7 @@ function createChildReport(
20912094 parentReportActionID : parentReportAction . reportActionID ,
20922095 parentReportID : parentReport ?. reportID ,
20932096 optimisticReportID : parentReportAction . childReportID ,
2097+ currentUserAccountID,
20942098 } ) ;
20952099
20962100 const childReportID = childReport ?. reportID ?? parentReportAction . childReportID ;
@@ -3001,6 +3005,7 @@ function toggleSubscribeToChildReport(
30013005 notificationPreference : CONST . REPORT . NOTIFICATION_PREFERENCE . ALWAYS ,
30023006 parentReportActionID : parentReportAction . reportActionID ,
30033007 parentReportID : parentReport ?. reportID ,
3008+ currentUserAccountID,
30043009 } ) ;
30053010
30063011 const participantLogins = PersonalDetailsUtils . getLoginsByAccountIDs ( participantAccountIDs ) ;
0 commit comments