         Loading      : => kd.utils.defer => @onCollaborationLoading()
         Resuming     : @bound 'onCollaborationResuming'
         NotStarted   : @bound 'onCollaborationNotStarted'
-        PreCreated   : @bound 'onCollaborationPreCreated'
+        Prepared     : @bound 'onCollaborationPrepared'
         Creating     : @bound 'onCollaborationCreating'
         Active       : @bound 'onCollaborationActive'
         Ending       : @bound 'onCollaborationEnding'

  startCollaborationSession: ->

    switch @stateMachine.state
      when 'PreCreated' then @stateMachine.transition 'Creating'


  onCollaborationCreating: ->

        .then =>
          @workspaceData.channelId = channel.id
          @chat.ready =>
            @stateMachine.transition 'Prepared'
        .error (err) =>
          # @stateMachine.transition 'ErrorCreating'


  onCollaborationPrepared: ->

    @chat.emit 'CollaborationNotInitialized'

