Skip to main content

Filter the users if the string typed in the search input is included in the username

In the CometChatUsers component, when a user types a string into the search input, it matches the characters one by one with the username. If any character typed does not matches with the uid/username, it does not populate the list.

For example, if there are two users named "john paul", "ajohnson", "michael johns" and "thejohnny," typing "john" will only display "john paul" in the list, not other users.

What is needed -
If the searched string is included in any of the username or uid the list should get populated.

Status: Completed1 comment

Log in to comment and vote

Comments1

  • Pourav Raj changed status to Completed
    TeamPinned

    🎉 Good news!

    This feature is now available!

    If you’d like to get it enabled for your account, just raise a quick query here 👉 https://help.cometchat.com/hc/en-us

    Our team will help you get started. 🙌