Okay after some further testing, it is indeed whichever contact you looked at last who gets attributed the dialogue. I used this to forge my own Jamie route, which made me tear up from laughing so hard.