// Don't know if it's true, but can't hurt, either.
sendPresence();
groupChatCache.clear();
for (IMMessageTarget chat : this.groupChats) {
GroupChatIMMessageTarget groupChat = (GroupChatIMMessageTarget) chat;
try {
getOrCreateGroupChat(groupChat);
LOGGER.info("Joined groupchat " + groupChat.getName());
} catch (IMException e) {
// if we got here, the XMPP connection could be established, but probably the groupchat name
// is invalid
LOGGER.warning("Unable to connect to groupchat '" + groupChat.getName() + "'. Did you append @conference or so to the name?\n"
+ "Exception: " + ExceptionHelper.dump(e));
}
}
} else {
// clean-up if needed