A woman is chatting as she drinks her coffee.
The woman is chatting with her friend.
People can be chatting with co-workers, customers, and strangers, not just a friend.
She can chat with anybody, not always with friend
Although she is chatting it does not mean she is chatting with her friend.