       channelId  : @socialChannel.id
     , callback
 
+    @rtm.once 'FileCreated', (file) =>
+      log 'file created', file
+      @chat.emit 'CollaborationStarted'
+
+    @rtm.createFile @getRealTimeFileName()
+
 
   stopCollaborationSession: (callback) ->
 

      payload    : 'system-message' : 'stop'
      channelId  : @socialChannel.id
    , callback


    log 'continuePrivateMessage'
    @statusBar.avatars.show()
    @chat.emit 'CollaborationStarted'


  isRealtimeSessionActive: (id, callback) ->

    @rtm.once 'FileQueryFinished', (file) =>

      if file.result.items.length > 0
        log 'file found'
        callback yes
      else
        log 'file not found'
        callback no

    @rtm.fetchFileByTitle @getRealTimeFileName id


  initPrivateMessage: (callback) ->
