statusChanger.setDirty(true);
}});
}
else if (imEvent.getCommand().equals("message")) {
//user receives messages from an other user
Message initialMessage = (Message)imEvent.getPacket();
String jid = extractJid(initialMessage.getFrom());
//recentChatPartners.add(initialMessage.getFrom());
if (((initialMessage.getType() == Message.Type.chat || initialMessage.getType() == Message.Type.normal)) && initialMessage.getBody() != null) {
if(!chatMgrCtrl.hasRunningChat(jid)) {//only show icon if no chat running or msg from other user
//add follow up message to info holder
if (showNewMessageHolder.get(jid) != null) {
NewMessageIconInfo info = showNewMessageHolder.get(extractJid(initialMessage.getFrom()));
info.addInitialMessage(initialMessage);
} else {
NewMessageIconInfo newMessageInfo = new NewMessageIconInfo(initialMessage.getFrom(), initialMessage);
showNewMessageHolder.put(jid, newMessageInfo);
newMessageInfo.setNewMessageLink(createShowNewMessageLink(initialMessage.getFrom(), newMessageInfo));
}
}
}
}