Smack 4.4.0-alpha3: The listener #roomDestroyed() callback in method MultiUserChat #checkPresenceCode is an unreachable code

aTalk has implemented the below patch for the MultipUserChat class. Without the patch, the chatRoom status is not being updated and not in sync with the actual. Also the callback roomDestroyed() is not being executed.

listener.roomDestroyed(alternateMUC, mucUser.getDestroy().getReason()).

The below patch is only for smack 4.4.0-alpha3 snapshot release i.e. Smack-4.4.0-alpha3-20190916 currently used in aTalk.

MultiUserChat.patch (5.3 KB)

The patch also fixed the shortfalls as reported in: