Listen to Taylor Swift on iHeartRadio | Listen to One Direction on iHeartRadio

(Yahoo!) - Who saw this one coming?

After some subtle and not-so-subtle digs hurled at Harry Styles, Taylor Swift ended up after-partying with her ex-boyfriend following Sunday's MTV Video Music Awards.

Swift, 23, and Styles, 19, were spotted hanging out at the SoHo Grand Hotel Club Room in New York City after the show and even posed together for a pic.

"Hosting the VMA after party @grandlifehotels With Taylor Swift, Ed Sheeran & Harry Styles," Instagram user "spikyphil" captioned the photo.

Taylor appears to be totally comfortable with Styles merely inches away. Still looking gorgeous in her VMA attire, Taylor gives the camera a little smirk (surely knowing that the pic would eventually go viral). Meanwhile, Harry seems to be his happy, carefree self. As for Ed ... well, something tells us he was probably the peacemaker in orchestrating the photo op.

Taylor's "Red" tour mate Ed Sheeran has remained good pals with the One Direction singer since the former couple split in January. Ed and Harry were even partners in crime at the Teen Choice Awards earlier this month.

Harry and Taylor's semi-cozy photo op may come as a surprise since earlier in the night the singer called out her former flame while accepting the Moonman for Best Female Video for her hit song, "I Knew You Were Trouble."

"Thank you. Wow. I want to thank the fans because I tweeted about this a lot, I really really wanted this," she said in her acceptance speech. "I also want to thank the person that inspired this song, and he knows exactly who he is, because I got one of these!"

Swift confirmed in March that "I Knew You Were Trouble" was indeed about Harry.