diff --git a/src/components/left/newChat/NewChatStep1.tsx b/src/components/left/newChat/NewChatStep1.tsx index 42c6ade67..3145110e1 100644 --- a/src/components/left/newChat/NewChatStep1.tsx +++ b/src/components/left/newChat/NewChatStep1.tsx @@ -101,11 +101,11 @@ const NewChatStep1: FC = ({ ]); const handleNextStep = useCallback(() => { - if (selectedMemberIds.length) { + if (selectedMemberIds.length || isChannel) { setGlobalSearchQuery({ query: '' }); onNextStep(); } - }, [selectedMemberIds, setGlobalSearchQuery, onNextStep]); + }, [selectedMemberIds.length, isChannel, setGlobalSearchQuery, onNextStep]); const lang = useLang(); @@ -136,7 +136,7 @@ const NewChatStep1: FC = ({ /> diff --git a/src/components/left/newChat/NewChatStep2.tsx b/src/components/left/newChat/NewChatStep2.tsx index 420029793..3fa1b4875 100644 --- a/src/components/left/newChat/NewChatStep2.tsx +++ b/src/components/left/newChat/NewChatStep2.tsx @@ -154,15 +154,19 @@ const NewChatStep2: FC = ({

{renderedError}

)} -

{lang('GroupInfo.ParticipantCount', memberIds.length, 'i')}

+ {memberIds.length > 0 && ( + <> +

{lang('GroupInfo.ParticipantCount', memberIds.length, 'i')}

-
- {memberIds.map((id) => ( - - - - ))} -
+
+ {memberIds.map((id) => ( + + + + ))} +
+ + )}