I’ve only ever seen the claim that donating some can be better for one’s own welfare, compared to a baseline of not giving at all—not that the EA approach to giving is actually the optimal for happiness (!).
Clarified my view somewhat in this comment. See also this comment.
Clarified my view somewhat in this comment. See also this comment.