I went to a coffee shop and had some sweets with my friend.
I just came home from eating sweets at a coffee shop with my friend.
ーI went to a coffee shop and had some sweets with my friend.
「友達とカフェでスイーツを食べた」
「友達とカフェでスイーツを食べてきた」
どちらのシチュエーションでもこの言い方ができます。
ーI just came home from eating sweets at a coffee shop with my friend.
「友達とカフェでスイーツ食べて今帰ってきたところ」
帰宅したことにもっと重点を置きたいなら、このようにも言えます。
ご参考まで!