@KiTA Your comment made me finally realize what happened.
She was greeting him, her friend thought she was greeting her, and that made him think she greeted her as well, which made her mad right after he left her there greeting her friend.
Ooff.. That was a tough one.