           @workspaceData.channelId = channel.id
           @chat.ready => callbacks.success()
         .error (err) => callbacks.error err
+
+
+  onCollaborationPreparing: ->
+
+    @prepareChatSession
+      success : => @stateMachine.transition 'Prepared'
+      error   : => @stateMachine.transition 'ErrorPreparing'
 
 
   onCollaborationPrepared: ->

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

  showChat: ->

    switch @stateMachine.state
      when 'Active' then @showChatPane()
      when 'NotStarted' then @stateMachine.transition 'Preparing'


  stopCollaborationSession: ->
