         channelName: slug
         isExclusive: yes
 
-      channelName   = "socialapi.#{slug}-group-#{slug}"
+      channelName    = generateChannelName
+        name         : slug
+        typeConstant : 'group'
+        groupName    : slug
+
       brokerChannel = KD.remote.subscribe channelName, subscriptionData
       @forwardMessageEvents brokerChannel, this, ["MessageAdded", "MessageRemoved"]
       @openedChannels[name] = brokerChannel


    getCurrentGroup (group)->
      for socialApiChannel in socialApiChannels
        {typeConstant, name, groupName} = socialApiChannel
        channelName = "socialapi.#{groupName}-#{typeConstant}-#{name}"
        continue  if socialapi.openedChannels[channelName]
        socialapi.openedChannels[channelName] = {} # placeholder to avoid duplicate registration

        subscriptionData =
          serviceType: 'socialapi'
          group      : group.slug
          channelType: typeConstant
          channelName: channelName
          isExclusive: yes


          ]

          socialapi.emit "ChannelRegistered-#{name}", brokerChannel

  generateChannelName = ({name, typeConstant, groupName}) ->
    return "socialapi.#{groupName}-#{typeConstant}-#{name}"

  message:
    edit   :(args...)-> messageApiMessageResFunc 'edit', args...
