/** * Creates a new chat with the specified user. * * @param connection the connection the chat will use. * @param participant the user to chat with. */ public Chat(XMPPConnection connection, String participant) { // Automatically assign the next chat ID. this(connection, participant, nextID()); }