I'm afraid your answer is incorrect. Your answer does leave the subspaces invariant, but it is not involutary as you noticed. Instead of isolating the real and imaginary parts as you have done, notice that the complex conjugation operation leaves real numbers unchanged and the negative of complex conjugation operation leaves imaginary numbers unchanged.

You can find the solution here:

Exercise 18.1.

Please let me know if you need any more clarification.