So you get it, haha. I'm sure you friend was competent but it amazes me how confidently realtors completely bungle contract law!
We had a mailbox rule issue here too and I had to insist that no, it is not fine to just accept an offer after sending a counteroffer.