Commit c7847b9 1 parent 8ff185a commit c7847b9 Copy full SHA for c7847b9
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -837,8 +837,8 @@ function openReport(
837
837
accountIDList : participantAccountIDList ? participantAccountIDList . join ( ',' ) : '' ,
838
838
parentReportActionID,
839
839
} ;
840
-
841
- if ( ReportUtils . isGroupChat ( newReportObject ) ) {
840
+ const isGroupChat = ReportUtils . isGroupChat ( newReportObject ) ;
841
+ if ( isGroupChat ) {
842
842
parameters . chatType = CONST . REPORT . CHAT_TYPE . GROUP ;
843
843
parameters . groupChatAdminLogins = currentUserEmail ;
844
844
parameters . optimisticAccountIDList = Object . keys ( newReportObject ?. participants ?? { } ) . join ( ',' ) ;
@@ -870,6 +870,7 @@ function openReport(
870
870
...newReportObject ,
871
871
pendingFields : {
872
872
createChat : CONST . RED_BRICK_ROAD_PENDING_ACTION . ADD ,
873
+ ...( isGroupChat && { reportName : CONST . RED_BRICK_ROAD_PENDING_ACTION . ADD } ) ,
873
874
} ,
874
875
isOptimisticReport : true ,
875
876
} ;
@@ -923,6 +924,7 @@ function openReport(
923
924
participants : redundantParticipants ,
924
925
pendingFields : {
925
926
createChat : null ,
927
+ reportName : null ,
926
928
} ,
927
929
errorFields : {
928
930
createChat : null ,
You can’t perform that action at this time.
0 commit comments