Is there a way on macOS so that I only get notifications from Messages when I have Messages running?

Sam Davies @mrbeefy