That way of thinking is not right. If people do not allow themselves to think about problems or sadness or other forms of emotion other than happiness then such attitudes will not help at all.
In difficult times in our lives, all we need to do is let ourselves grieve and feel the various emotions, because it is a natural part of the healing process.
"In difficult times in our lives, all we need to do is let ourselves grieve and feel the various emotions, because it is a natural part of the healing process."
Indeed.
And then to release them. No to dwell in them for too long.