A community member trying to play therapist doesn’t usually go well. At the same time, being part of a community seems to be correlated with significantly better well-being for people with mental illness.
The OP’s comment is the equivalent of saying “exercise is solving the problem of drinking too much soda”. It’s not wrong. Exercise can help alleviate some of the issues caused by drinking too much soda by helping reduce your possibly associated weight gain. But that doesn’t mean that if one weren’t drinking too much soda then exercise isn’t useful.