Support search for E164 without candidate contacts

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-04-13 15:14:49 -07:00 committed by GitHub
parent 9d03d164e1
commit 2c81afc81a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -239,7 +239,6 @@ export const ChooseGroupMembersModal: FunctionComponent<PropsType> = ({
{i18n('AddGroupMembersModal--title')}
</h1>
<SearchInput
disabled={candidateContacts.length === 0}
i18n={i18n}
placeholder={i18n('contactSearchPlaceholder')}
onChange={event => {
@ -277,7 +276,7 @@ export const ChooseGroupMembersModal: FunctionComponent<PropsType> = ({
))}
</ContactPills>
)}
{candidateContacts.length ? (
{rowCount ? (
<Measure bounds>
{({ contentRect, measureRef }: MeasuredComponentProps) => {
// We disable this ESLint rule because we're capturing a bubbled keydown