Why do we do this to ourselves? đ
Yes, both are used interchangeably. But, if I was to think about "rules" of English grammar I would use "I've just had" (Present Perfect) because the time of drinking the cup of tea is not specified or even important. Plus, it seems to have an influence on the present moment. I assume that the speaker is satisfied in the present moment because of finishing a cup of tea in the recent past.
"I just had" (Simple Past) indicates a completed action that took place and was finished in the past. I just had a cup of tea at 7:00 a.m.
Again, either response would be used without analysis.
That's my two cents! But, I am open to any other ideas.