Private Message link on BBPress not working anymore

I have a Private Message link that when clicked, it is supposed to fetch the current username, and fill it in to the To: field on the BuddyPress Messages form. For some reason, the below code is no longer working after the latest update. Can you please take a look?

Code in mu-plugin:

function ntwb_bbp_bp_pm() {
   if(function_exists('bp_send_private_message_link') && is_user_logged_in() ) {

   	//bbp_get_reply_author_id() function will give us replu author id
   	//get_userdata will return reply author's information
   	$reply_author_userData = get_userdata( bbp_get_reply_author_id() );
   	//From user_data object we are fetching only username which we require for our purpose.
   	$reply_author_username = $reply_author_userData->user_login;

     <a href="<?php bp_send_private_message_link(); ?>&reply_author_username=<?php echo $reply_author_username; ?>" title="Private Message" class="bbp-pm-link">Private Message</a>
add_action( 'bbp_theme_after_reply_author_details', 'ntwb_bbp_bp_pm' );

Support access is open.