I suffered from a period of bad depression following an aircraft accident. My Class 1 medical was temporarily suspended by my AME (best thing that happened to me, as I had been bottling things up).
My employers were very supportive, I had some counselling, which did help, and after a couple of months the medical was re-instated. The CAA medical department had no issues with this, wrote me a letter assuring me that they had no further comment to make and that they would be glad to help in the future if required. I have decalred it on every medical renewal since, and have changed jobs, and it has not been an issue.
Don't worry unneccessarily.......................