if one share appleID this happens unless one disable iMessage in settings on both phones
using the same appleID will also mean you can't FaceTime each other and you will share call log for all phone calls (this can't be disabled)
don't share appleID use family sharing instead iCloud - Family Sharing - Apple (UK)