How Do You Tell If a Guy Is Being Friendly or Flirting?

It’s a situation many find themselves in: a chat with a guy that leaves you wondering if he was just being friendly or if there were some flirty undertones..