How to make searching in room return 'name' instead of 'username'


Server Setup Information

  • Version of Rocket.Chat Server: 2.4.11
  • Operating System: Linux
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • NodeJS Version: v8.17.0
  • MongoDB Version: 3.6.14

Whenever I tried to search a person in # Rooms using their name it nothing shows up. But when I search with username it shows up. I want to search a person using their name instead of username. How can I do it?
I am attaching images to explain myself better