Restricting messaging search to just name and username
I’m having a problem with the messaging in BuddyPress. When I search for a user in Compose, to send them a message, they quite often don’t appear in the dropdown list of users.
I am pretty sure this is because the ajax search bp_get_suggestions is checking the extended user fields as well as the name and username fields. My members are referred by other members, so many of them have another user’s name in one of their extended user fields. This means a search for ‘@jane’ will bring back all the users who have been referred by Jane before it brings back Jane herself. And because it’s alphabetical, we don’t get to Jane herself.
Is there a way to restrict the fields that get searched for this messaging functionality?
- You must be logged in to reply to this topic.