else {
getGuiOnlineMenu();
internal_state = ONLINE;
}
} else if (id == Contents.send) {
TextArea tf = (TextArea) infopool.remove("text2send");
if (!tf.getText().equals("")) {
Message msg = new Message("", tf.getText());
((Chat) currentConversation).appendFromMe(msg);
}
getGuiUpdateConversation(-1);
}
else if (id == Contents.invite ) {
TextField tf = (TextField) infopool.remove("invite");
String inv = tf.getText();
if (inv.indexOf("@") != -1)
ChatHelper.inviteContact(inv, currentConversation.name);
else {
//display.setCurrent(new Alert("Invitation error", "JID not correct", null, AlertType.ERROR), getGuiConversation());
Dialog.show("Error", "Invitation error", null, Dialog.TYPE_ERROR,null, 3000);