الجواب حامدا و مصلیا
If at any gathering, there will not be any of the sinful actions mentioned in the question, then one can attend it, especially if not attending can cause ties between relatives to be severed or problems between family members. This is the meaning of the mentioned words of Hakeemul-Ummat.
