diff --git a/src/pages/NewChatPage.tsx b/src/pages/NewChatPage.tsx index 52e05cf17f1d..05a3f9f30224 100755 --- a/src/pages/NewChatPage.tsx +++ b/src/pages/NewChatPage.tsx @@ -323,8 +323,22 @@ function NewChatPage({ref}: NewChatPageProps) { selectionListRef.current?.focusTextInput(); } setSelectedOptions(newSelectedOptions); + + if (personalData?.login && personalData?.accountID) { + const participants: SelectedParticipant[] = [ + ...newSelectedOptions.map((selectedOption) => ({ + login: selectedOption.login, + accountID: selectedOption.accountID ?? CONST.DEFAULT_NUMBER_ID, + })), + { + login: personalData.login, + accountID: personalData.accountID, + }, + ]; + setGroupDraft({participants}); + } }, - [selectedOptions, setSelectedOptions], + [selectedOptions, setSelectedOptions, personalData?.accountID, personalData?.login], ); /**