The Messages app on any iPhone or Mac collects both your SMS texts and iMessage chats. For the latter, you can configure a setting that disables notifications for any iMessage from a phone number or email address that’s not already in your contacts list. That can filter out phishing scams and general message spam.
09.15.18