new ChatManagerEventsSupervisor(roomManager, display);
new RoomManagerEventsSupervisor(roomManager, display);
// 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);