           setTitle "#{actorName} liked your status."
         when "follow"
           setTitle "#{actorName} started following you."
+        when "join"
+          setTitle "#{actorName} has joined <a href='/#{target.slug}'>#{target.title}</a>."
+        when "leave"
+          setTitle "#{actorName} has left <a href='/#{target.slug}'>#{target.title}</a>."
+
       # when "newMessage"
       #   @emit "NewMessageArrived"
       #   "#{actorName} sent you a #{subjectMap()[subject.constructorName]}."
       # when "groupInvited"
       #   "#{actorName} has invited you to <a href='#'>#{subjectObj.title}</a>."
-      # when "groupJoined"
-      #   "#{actorName} has joined <a href='/#{subjectObj.slug}'>#{subjectObj.title}</a>."
-      # when "groupLeft"
-      #   "#{actorName} has left <a href='/#{subjectObj.slug}'>#{subjectObj.title}</a>."
+
 
   prepareClick: (data, options) ->
     {target, contents} = data


  fetchTarget: (data)->
    new Promise (resolve, reject) =>
      {targetId, type} = data.contents
      switch type
        when "comment", "like"
          KD.remote.api.SocialMessage.fetch id: targetId, (err, target) =>
            return reject err  if err
            data.target = target
            resolve data
        else
          resolve data


        .catch (err) ->
          warn err  if err


  notify:(options  = {})->

