I tend to view shop staff having a random talk with someone while I’m waiting to purchase or ask something as a dereliction of duty. If you want to catch up with a friend you can do it on your own time.