Generally speaking, male/female pairs are considered ideal, but it varies dog to dog. We have lots of members with male-male pairs (and male-male-male-etc) and they do fine.
Does your SIL's dog pee inside? I think it's more likely that Riley smelled dog pee in the house and figured "hey, if someone else is doing it . . ."
Does your SIL's dog pee inside? I think it's more likely that Riley smelled dog pee in the house and figured "hey, if someone else is doing it . . ."