Safety settings for Xbox messages | Xbox Support
Select Profile & system > Settings > Account > Privacy & online safety > Message safety. Adjust your messaging filters by using the info in each section below to configure your ideal Xbox experience.