I experienced the same issue. 8 months of Zoloft before figuring it was a test level below 120. ED was real. TRT and cialas got me right.Low T definitely contributed to my depression. Getting my levels right was like having a fog lifted from my life. I wasn't so much suicidal as I was dangerously apathetic about my well being.
Your mileage may vary, of course.