     @emitChange()
 
 
+  ###*
+   * Defensively add talking participant.
+   *
+   * @param {string} nickname
+  ###
   addTalkingParticipant: (nickname) ->
 
     index = @state.talkingParticipants.indexOf nickname

      @emitChange()


  emitChange: -> @emit 'change', @getLists(), @state


  setVideoState: (state, participants) ->

    @state.videoActive = state

      @emitChange()


  ###*
   * Defensively add active video participant.
   *
   * @param {string} nickname
  ###
  removeVideoActiveParticipant: (nickname) ->

    index = @state.videoParticipants.indexOf nickname
