Sounds to me like your friend who died int he dream was checking in to say good-bye. Do you have a way to verifiying that he/she is still alive and well?
My husband has dreams like that and it usually ends up with him finding out that whomever he dreamt about had died a few days ago.....
The fact that it's a wedding/funeral makes me think that with the end of one life a new life is begining....just my thought on the matter. Do let us know about your friend?