I've been in a position before where male friends suddenly start ignoring me just because they're fucking someone new. I find it rude and disrespectful.
Whether you realise it or not, you're probably giving the roommate all your attention and ignoring your friend in the process. Treat your friend with respect, acknowledge her existence, and show her you care about her as much as you did before, and things will probably be fine.