how would dissonance theorist explain paradoxical finding we are apt our adversaries after d

How would a dissonance theorist explain the paradoxical finding that we are apt to like our adversaries after doing them a favor, and to dislike our friends after treating them badly?