 
     return callback msg : 'no social channel'  unless @socialChannel
 
-    {message} = KD.singletons.socialapi
-    nick      = KD.nick()
-
-    @broadcastMessages.push origin: KD.nick(), type: 'SessionEnded'
+    {message} = kd.singletons.socialapi
+    nick      = nick()
+
+    @broadcastMessages.push origin: nick(), type: 'SessionEnded'
 
     @rtm.once 'FileDeleted', =>
       @statusBar.emit 'CollaborationEnded'


    @setMachineUser [account], no, =>

      KD.singletons.socialapi.channel.kickParticipants options, (err, result) =>

        return KD.showError err  if err

        targetUser = account.profile.nickname
        message    =
          type     : 'ParticipantKicked'
          origin   : KD.nick()
          target   : targetUser

        @broadcastMessages.push message


  deletePrivateMessage: (callback = noop) ->

    {channel}    = kd.getSingleton 'socialapi'
    {JWorkspace} = remote.api

    options = channelId: @socialChannel.getId()
    channel.delete options, (err) =>
