If you see a moon icon next to a contact's name in iMessage, it means that you have silenced their notifications. You'll get a notification with the contact's name and the moon symbol when this happens .