 
     @socialChannel
       .on 'AddedToChannel', @bound 'participantAdded'
-      .on 'ChannelDeleted', @bound 'channelDeleted'
+      .on 'ChannelDeleted', @bound 'stopCollaborationSession'
 
 
   participantAdded: (participant) ->

      {nickname} = account.profile
      @statusBar.createParticipantAvatar nickname, no
      @watchParticipant nickname


  channelDeleted: ->

    @stateMachine.transition 'Ending'


  bindRealtimeEvents: ->



  stopCollaborationSession: ->

    return  unless @stateMachine

    switch @stateMachine.state
      when 'Active' then @stateMachine.transition 'Ending'
