If before you thank someone the situation is someone has done something nice for you, then afterwards the situation is likely to be they are likely to be nice to you again