When (someone) said that, (sentence)
When people tell a story about a conversation, they often explain how they felt about something that a person said.
He said "I'm going to report this to your boss." When he said that, I was like, "Oh crap!"
She told me that she was seventy years old. When she said that, I thought, "Damn, I hope I look that good when I'm seventy!"