How to stop Privatemsg showing user role in 'To' field With the module Privatemsg (v7.x-1.3) the 'To' field will show the username and then their role in brackets when composing a new message with the user id passed in the url:

/messages/new/567


I've searched the code but cannot seem to find where the role is being added so that I can disable it. Does anyone know?
Inside the privatemsg module, in hook_menu search for $items['messages/autocomplete'] this is where the menu defines the auto complete path.

Search for privatemsg_autocomplete function where the output is defined.

UPDATE:

To remove just the role, here is a patch for that. Here is a thread on drupal that shows how this has progressed https://drupal.org/node/1852746