Rabbi Moshe Feinstein stated a person should NOT pray in a minyan which gathers together in a room that is also used for activities against the Torah. For example, if a social hall is used for mixed dancing or gambling, a person should NOT pray there.