Since the update of Smack, JIDs should not be compared with strings, as those are two different types that will never be equal. Instead, use the various Jid classes provided by Smack.