// Accept the room invitations we receive
roomManager.addRoomInvitationReceivedHandler(new RoomInvitationHandler() {
@Override
public void onRoomInvitation(final RoomInvitationEvent event) {
final RoomInvitation invitation = event.getRoomInvitation();
display.print("Room invitation received: " + invitation.getReason() + " - " + invitation.getInvitor() + " to " + invitation.getRoomURI(),
Style.important);
display.print("We accept the invitation", Style.important);
roomManager.acceptRoomInvitation(invitation);
}
});