proper group name pt3
This commit is contained in:
@@ -97,7 +97,8 @@ class ChatServerModel {
|
|||||||
}
|
}
|
||||||
if (chatCommand.action == ChatAction.SAY &&
|
if (chatCommand.action == ChatAction.SAY &&
|
||||||
room == core.me.toBase64()) {
|
room == core.me.toBase64()) {
|
||||||
if (!mvcGroup.childrenGroups.containsKey(e.sender.getHumanReadableName()+"-private-chat")) {
|
String groupId = e.sender.getHumanReadableName() + "-private-chat"
|
||||||
|
if (!mvcGroup.childrenGroups.containsKey(groupId)) {
|
||||||
def params = [:]
|
def params = [:]
|
||||||
params['core'] = core
|
params['core'] = core
|
||||||
params['tabName'] = host.getHumanReadableName() + "-chat-rooms"
|
params['tabName'] = host.getHumanReadableName() + "-chat-rooms"
|
||||||
@@ -106,9 +107,9 @@ class ChatServerModel {
|
|||||||
params['host'] = host
|
params['host'] = host
|
||||||
params['roomTabName'] = e.sender.getHumanReadableName()
|
params['roomTabName'] = e.sender.getHumanReadableName()
|
||||||
|
|
||||||
mvcGroup.createMVCGroup("chat-room",e.sender.getHumanReadableName()+"-private-chat", params)
|
mvcGroup.createMVCGroup("chat-room",groupId, params)
|
||||||
}
|
}
|
||||||
room = e.sender.toBase64()
|
room = groupId
|
||||||
}
|
}
|
||||||
mvcGroup.childrenGroups[room]?.controller?.handleChatMessage(e)
|
mvcGroup.childrenGroups[room]?.controller?.handleChatMessage(e)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user