 
     getCurrentGroup (group)->
       for socialApiChannel in socialApiChannels
-        {typeConstant, name, groupName} = socialApiChannel
-        channelName = "socialapi.#{groupName}-#{typeConstant}-#{name}"
+        channelName = generateChannelName socialApiChannel
         continue  if socialapi.openedChannels[channelName]
         socialapi.openedChannels[channelName] = {} # placeholder to avoid duplicate registration
 
         subscriptionData =
           serviceType: 'socialapi'
           group      : group.slug
-          channelType: typeConstant
+          channelType: socialApiChannel.typeConstant
           channelName: channelName
           isExclusive: yes
 

          ]

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

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

        channelName: slug
        isExclusive: yes

      channelName    = generateChannelName
        name         : slug
        typeConstant : 'group'
        groupName    : slug

      brokerChannel = KD.remote.subscribe channelName, subscriptionData
      @forwardMessageEvents brokerChannel, this, ["MessageAdded", "MessageRemoved"]
      @openedChannels[name] = brokerChannel
