     revivedMessages = (mapActivity message for message in messages)
     return revivedMessages
 
+  mapActivities: mapActivities
+
   getCurrentGroup = (callback)->
     groupsController = KD.getSingleton "groupsController"
     groupsController.ready ->

      mappedAccounts.push {_id: account, constructorName : "JAccount"}
    return mappedAccounts

  mapChannels: mapChannels
  mapChannels = (channels)->
    return channels unless channels
    revivedChannels = []


    return m

  mapActivities = (messages)->
    # if no result, no need to do something
    return messages unless messages
