suffix for group ids

pull/34/head
Zlatin Balevsky 2019-11-12 12:33:18 +00:00
parent 621af96bdf
commit 59c03be35e
2 changed files with 4 additions and 4 deletions

View File

@ -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()
}

View File

@ -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)
}
}
}