Fixed setting current chat pane and focus requesting upon msg reception

cusax-fix
Emil Ivov 20 years ago
parent 72e368afa5
commit dd3afb05da

@ -480,13 +480,17 @@ public void windowClosing(WindowEvent e) {
chatPanel
= tabbedChatWindow.addChatTab(metaContact, contactStatus,
protocolContact);
tabbedChatWindow.setCurrentChatPanel(chatPanel);
chatPanel.getConversationPanel()
.processMessage(evt.getSourceContact().getDisplayName(),
evt.getTimestamp(), ChatMessage.INCOMING_MESSAGE,
evt.getSourceMessage().getContent());
tabbedChatWindow.setVisible(true);
tabbedChatWindow.setVisible(true);
tabbedChatWindow.requestFocusInCurrentChat();
}
else{
chatPanel = tabbedChatWindow.getChatPanel(metaContact);
@ -703,4 +707,4 @@ private void setMetaContact(MetaContact metaContact){
this.metaContact = metaContact;
}
}
}
}

Loading…
Cancel
Save