mirror of https://github.com/zlatinb/muwire
proper group name for manual rejoin
parent
f8e0c9524e
commit
8a47972b10
|
@ -63,7 +63,8 @@ class ChatRoomController {
|
||||||
|
|
||||||
if (command.action == ChatAction.JOIN) {
|
if (command.action == ChatAction.JOIN) {
|
||||||
String newRoom = command.payload
|
String newRoom = command.payload
|
||||||
if (!mvcGroup.parentGroup.childrenGroups.containsKey(newRoom)) {
|
String groupId = model.host.getHumanReadableName()+"-"+newRoom
|
||||||
|
if (!mvcGroup.parentGroup.childrenGroups.containsKey(groupId)) {
|
||||||
def params = [:]
|
def params = [:]
|
||||||
params['core'] = model.core
|
params['core'] = model.core
|
||||||
params['tabName'] = model.host.getHumanReadableName() + "-chat-rooms"
|
params['tabName'] = model.host.getHumanReadableName() + "-chat-rooms"
|
||||||
|
@ -73,7 +74,7 @@ class ChatRoomController {
|
||||||
params['roomTabName'] = newRoom
|
params['roomTabName'] = newRoom
|
||||||
params['chatNotificator'] = view.chatNotificator
|
params['chatNotificator'] = view.chatNotificator
|
||||||
|
|
||||||
mvcGroup.parentGroup.createMVCGroup("chat-room", model.host.getHumanReadableName()+"-"+newRoom, params)
|
mvcGroup.parentGroup.createMVCGroup("chat-room", groupId, params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (command.action == ChatAction.LEAVE && !model.console) {
|
if (command.action == ChatAction.LEAVE && !model.console) {
|
||||||
|
|
Loading…
Reference in New Issue