mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1206: New chat window is not opened while receiving offline messages on login
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12042 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
konstantin.zolotarev
parent
69fe8cc70b
commit
1dc59309f8
@ -379,6 +379,10 @@ public class Workspace extends JPanel implements PacketListener {
|
|||||||
|
|
||||||
// Create the room if it does not exist.
|
// Create the room if it does not exist.
|
||||||
ChatRoom room = SparkManager.getChatManager().createChatRoom(bareJID, nickname, nickname);
|
ChatRoom room = SparkManager.getChatManager().createChatRoom(bareJID, nickname, nickname);
|
||||||
|
if(!SparkManager.getChatManager().getChatContainer().getChatFrame().isVisible())
|
||||||
|
{
|
||||||
|
SparkManager.getChatManager().getChatContainer().getChatFrame().setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
// Insert offline message
|
// Insert offline message
|
||||||
room.getTranscriptWindow().insertMessage(nickname, message, ChatManager.FROM_COLOR, Color.white);
|
room.getTranscriptWindow().insertMessage(nickname, message, ChatManager.FROM_COLOR, Color.white);
|
||||||
|
|||||||
Reference in New Issue
Block a user