Thank you for contacting and sorry for late reply.
Are you using this https://www.shamimsplugins.com/docs/front-end-pm/customization/user-name-pre-populate-new-message/ ?
This link have to be added in your template file ( php file )
Best regards
Shamim