Don't give up hope: I developed viral dilated cardiomyopathy last year ... Was diagnosed just a week before I was due to see the bariatric surgeon for my initial consultation!
I was pretty sick at the time I was diagnosed, with an ejection fraction of 23 percent and struggling to breathe. Being told I had to live with heart failure and a permanently damaged heart was a shock, and even more of a shock when I got the news tht my heart condition had also made me diabetic and had screwed up the electrical output of my heart, causing a bundle branch blockage (one side of my heart beats out of synch with the other). The specialist told me I would need surgery to have an internal defibrillator implanted to keep my heart in rhythm but that they didn't think they would be able to stop the progression of the damage ... The best they were hoping for was to slow it down. At that stage I wasn't a good surgical candidate ... They reckoned my heart wouldn't have coped with an anaesthetic ... So I had to go on to medication and wait for things to stabilise enough to have the defibrillator implanted.
Eight months after the initial diagnosis I got the news that the medication was working far better than expected and the heart surgery was on hold because my heart function had improved so much. I still have heart failure and will probably be on medication for the rest of my life, but things were definitely looking better than they were in May last year! In fact, things were stable enough for me to take that first step in seeing the bariatric surgeon and 11 months after getting that scary diagnosis I had my surgery.
You really need to talk to a specialist, but even if you can't have the surgery now, you might be a candidate later.
Good luck.