Joel Madden (left) and Matthew Koma.Photo:Phamous / BACKGRID

Joel Madden and Matthew Koma share a moment of camaraderie over coffee at Civil Coffee

Phamous / BACKGRID

There’s harmony between the men inHilary Duff’s life — past and present!

The “Coming Clean” singer’s husband,Matthew Koma, and her ex-boyfriendJoel Maddenwere spotted grabbing coffee together in Los Angeles on Friday.

Both men were casually dressed for the outing as they strolled and chatted. Madden, 45, wore a matching dark blue sweatshirt and pants, with a black baseball cap on his head.

Koma, 36, paired a light blue shirt with gray sweats and wore sunglasses and an olive green cap.

Joel Madden and Matthew Koma step out together in Los Angeles.Phamous / BACKGRID

Joel Madden and Matthew Koma

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from celebrity news to compelling human interest stories.

The pictures marked the first time Koma — who is currently expecting his third child with Duff, 36 — was seen out publicly since revealing that he was undergoing a vasectomy.

On Monday, the musician shared several slides about the procedure on hisInstagram Story.

“It’s vasectomy day!!!!!!” he captioned a selfie taken in his car.

From left: Hilary Duff, Matthew Koma and Joel Madden.Neilson Barnard/Getty Images; Gilbert Flores/Variety via Getty Images

Hilary Duff and Matthew Koma attend the Amazon Prime Video’s Golden Globe Awards; Joel Madden at the star ceremony

After the procedure, Koma shared a photo of himself in a hospital cap and gown. “It’s honestly not bad at all. Like better than going to the dentist for sure,” he captioned the image.

TheLizzie McGuirestar datedGood Charlottemember Madden from 2005 — when they worked together on her compilation albumMost Wanted— until November 2006.

Madden married actress and reality starNicole Richie. in 2010. Theyshare two children, Harlow, 16, and Sparrow, 14.

Hilary Duff.Jon Kopaloff/Getty

Hilary Duff

Jon Kopaloff/Getty

Back in December, Duff spoke about herclose relationship with Maddenand Richie, 42, onWatch What Happens Live.

“By the way, I have a good relationship with their whole family. I think people were [blown away]. I don’t know. We’re neighbors. And we actually hang out all the time,” she said at the time.

“I was just in [Richie’s] driveway, honking for her to come drink wine with us the other day,” theHow I Met Your Fatherstar added.

source: people.com