       @isRealtimeSessionActive channel.id, (isActive, file) =>
         if isActive
           @whenRealtimeReady => @continuePrivateMessage callback
-          return @loadCollaborationFile file.result.items[0].id
+          return @loadCollaborationFile file.id
 
         @statusBar.share.show()
         @chat.emit 'CollaborationNotInitialized'


  isRealtimeSessionActive: (id, callback) ->

    kallback = =>
      options = { title: @getRealtimeFileName id }
      @rtm.fetchFileByTitle options, (err, file) =>
        return callback no  if err

        if file.result.items.length > 0
        then callback yes, file
        else callback no


    if @rtm then kallback()
    else
      @rtm = new RealtimeManager
      @rtm.ready => kallback()


  getCollaborationData: (callback = kd.noop) ->

      kd.utils.killRepeat @pollInterval
      return

    id = @getSocialChannelId()

    @isRealtimeSessionActive id, (isActive) =>

      return  if isActive

