To turn off notifications for all messages, change your Notification preferences. You can also change the type of notifications you receive for messages (for example, playing a sound or showing a badge on the Messages icon in the Dock). See Receive, pause, or stop notifications on Mac.