With DC1 we kept all visitors at arms' length until we were home for a night or two.
Unfortunately, this was day three. Boobs like rocks, on fire, I was hormonal, awful.
And the visitors were PILs, MIL would not be kept away any longer. So I was sat there trying to breastfeed under a blanket whilst making small talk with FIL. Took myself off to the bedroom and MIL followed me, saw me boobs-out. Awful, awful, awful.
My DPs came a day or two later, was fine.
With DC2 I played it differently. My DPs were at our house caring for DC1 anyway, so we came home the same day, they met their new grandchild, we all ate pizza and they left us to it. No bf'ing needed as DC2 slept the whole time.
We then allowed PILs to come the following day. My milk hadn't come in yet, DC2 slept, DH took DC1 and PILs out for lunch so I could rest whilst DC2 napped. Completely different.
I then did the pain and weeping on day three in private.
I would advise waiting until the baby arrives, but a quick visit very early on, on the day of the birth or day after, could be enough to keep them away for long enough to avoid the bf trauma!