 
     if @permissions.get(nick()) is 'read'
       @makeReadOnly()
-
-
-  loadCollaborationFile: (fileId) ->
-
-    return  unless fileId
-
-    @rtmFileId = fileId
-
-    realtimeHelpers.loadCollaborationFile @rtm, fileId, (err, doc) =>
-      return throwError err  if err
-
-      @activateRealtimeManager doc
-      @bindSocialChannelEvents()
-      @finderPane.on 'ChangeHappened', @bound 'syncChange'
 
 
   reviveHostSnapshot: ->

    if @rtm?.isReady
    then callback()
    else @once 'RTMIsReady', callback


  showChat: ->

    return @createChatPane()  unless @chat

    @chat.start()


  createChatPane: ->

    @startChatSession (err, channel) =>

      return showError err  if err

      @createChatPaneView channel


  createChatPaneView: (channel) ->
    return throwError 'RealtimeManager is not set'  unless @rtm

    options = { @rtm, @isInSession }
    @getView().addSubView @chat = new IDEChatView options, channel
    @chat.show()

    @on 'RTMIsReady', =>
      @listChatParticipants (accounts) =>
        @chat.settingsPane.createParticipantsList accounts

      @statusBar.emit 'CollaborationStarted'

      {settingsPane} = @chat

      settingsPane.on 'ParticipantKicked', @bound 'handleParticipantKicked'
      settingsPane.updateDefaultPermissions()


  kickParticipant: (account) ->

    @socialChannel = channel


  fetchSocialChannel: (callback) ->

    if @socialChannel
