final XMLPacket x = message.getExtension("x", XmppNamespaces.MUC_USER);
if (x != null && x.hasChild("invite")) {
final XMLPacket invite = x.getFirstChild("invite");
final RoomInvitation invitation = new RoomInvitation(XmppURI.uri(invite.getAttribute("from")), message.getFrom(), invite.getChildText("reason"));
eventBus.fireEventFromSource(new RoomInvitationReceivedEvent(invitation), this);
return;
}
final RoomChat chat = getRoom(message.getFrom());
if (chat != null) {