mirror of https://github.com/zlatinb/muwire
suffix for group ids
parent
621af96bdf
commit
59c03be35e
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue