Hi Mysticcheezwhiz. Welcome to Psych Central. I am deeply sorry to hear of the loss of your friend. That must be so difficult for you not having that companionship. How are you coping with the loss? There are grief counselors therapists that can help as well as support groups. Just telling our story in itself can be a help on the way to processing grief.
There is something that I have read that may explain the happy messages before he died. When someone that has been in pain for a long time finds out they will die soon, it can be a big sense of relief to believe that it is almost over. Many people who commit suicide seem to want to end the pain, not necessarily to end their life. So when they finally decided to end their life that may explain the happy messages.
Here are some articles that may be of interest.
https://psychcentral.com/blog/archiv...mmits-suicide/
https://psychcentral.com/lib/suicide...urvivors-cope/
Suicide and Crisis: Support Groups Resources | Psych Central