diff --git a/gui/griffon-app/models/com/muwire/gui/ChatServerModel.groovy b/gui/griffon-app/models/com/muwire/gui/ChatServerModel.groovy index 81aebe87..7d10e375 100644 --- a/gui/griffon-app/models/com/muwire/gui/ChatServerModel.groovy +++ b/gui/griffon-app/models/com/muwire/gui/ChatServerModel.groovy @@ -97,7 +97,7 @@ class ChatServerModel { } if (chatCommand.action == ChatAction.SAY && room == core.me.getHumanReadableName()) { - if (!mvcGroup.childrenGroups.containsKey(e.sender.getHumanReadableName())) { + if (!mvcGroup.childrenGroups.containsKey(e.sender.getHumanReadableName()+"-private-chat")) { def params = [:] params['core'] = core params['tabName'] = host.getHumanReadableName() + "-chat-rooms" @@ -105,7 +105,7 @@ class ChatServerModel { params['privateChat'] = true params['host'] = host - mvcGroup.createMVCGroup("chat-room",e.sender.getHumanReadableName(), params) + mvcGroup.createMVCGroup("chat-room",e.sender.getHumanReadableName()+"-private-chat", params) } room = e.sender.getHumanReadableName() } diff --git a/gui/griffon-app/views/com/muwire/gui/ChatRoomView.groovy b/gui/griffon-app/views/com/muwire/gui/ChatRoomView.groovy index 797a5c09..0bebeb7c 100644 --- a/gui/griffon-app/views/com/muwire/gui/ChatRoomView.groovy +++ b/gui/griffon-app/views/com/muwire/gui/ChatRoomView.groovy @@ -115,7 +115,7 @@ class ChatRoomView { if (lastMembersTableSortEvent != null) selectedRow = membersTable.rowSorter.convertRowIndexToModel(selectedRow) Persona p = model.members[selectedRow] - if (p != model.core.me && !mvcGroup.parentGroup.childrenGroups.containsKey(p.getHumanReadableName())) { + if (p != model.core.me && !mvcGroup.parentGroup.childrenGroups.containsKey(p.getHumanReadableName()+"-private-chat")) { def params = [:] params['core'] = model.core params['tabName'] = model.tabName @@ -123,7 +123,7 @@ class ChatRoomView { params['privateChat'] = true params['host'] = model.host - mvcGroup.parentGroup.createMVCGroup("chat-room", p.getHumanReadableName(), params) + mvcGroup.parentGroup.createMVCGroup("chat-room", p.getHumanReadableName()+"-private-chat", params) } } }