mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Small update to broadcasting.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5086 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -207,9 +207,15 @@ public class ChatManager implements MessageEventNotificationListener {
|
||||
catch (ChatRoomNotFoundException e) {
|
||||
ContactList contactList = SparkManager.getWorkspace().getContactList();
|
||||
ContactItem item = contactList.getContactItemByJID(jid);
|
||||
if (item != null) {
|
||||
String nickname = item.getNickname();
|
||||
chatRoom = new ChatRoomImpl(jid, nickname, nickname);
|
||||
}
|
||||
else {
|
||||
chatRoom = new ChatRoomImpl(jid, jid, jid);
|
||||
}
|
||||
|
||||
|
||||
String nickname = item.getNickname();
|
||||
chatRoom = new ChatRoomImpl(jid, nickname, nickname);
|
||||
getChatContainer().addChatRoom(chatRoom);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user