Rejoin a muc after a reconnect

Hello if I’m connect to a muc and a re connection occurs I get reconnected successfully but I’m no longer joined the muc. What is the best way to go about reconnecting to the muc? Thank you very much for your help.

I solved it by adding a connectionListener

I plan to add native support for this in Smack. See [SMACK-572] Rejoin MUC rooms after reconnect - Jive Software Open Source