When you want to say two things about the same person, you can combine them using "who ___". In the example above, there are two ideas that are being expressed:
I was talking with someone.
She just got back from maternity leave.
You put these ideas together by saying:
talking with someone who just got back from maternity leave