Removes duplication in ChatAlerterActivator introduced in r5964.

cusax-fix
Lyubomir Marinov 17 years ago
parent c40b56ead8
commit 28adf2043e

@ -353,24 +353,7 @@ public void messageDeliveryFailed(
public void messageReceived(AdHocChatRoomMessageReceivedEvent evt)
{
try
{
ExportedWindow win =
uiService.getExportedWindow(ExportedWindow.CHAT_WINDOW);
if(win == null || win.getSource() == null ||
!(win.getSource() instanceof JFrame))
return;
JFrame fr = (JFrame)win.getSource();
if(fr != null)
Alerter.newInstance().alert(fr);
}
catch (Exception ex)
{
logger.error("Cannot alert chat window!");
}
alertChatWindow();
}
/**

Loading…
Cancel
Save