The issue is somewhere inside the ajax.php from the theme. I’m using a custom theme (Not online) on a local version of wordpress. Tried using the functions.php from the legacy template but there is no live update so I skipped that. (Messages doesnt send at all)
Edit: I fixed the problem with combining ajax.php from the old buddypress template with the new functions.