     @state =
       editing: false
       message: ''
-      resolveDiscussion: @props.discussion.resolved
       posting: null
 
 

    @throttledPost(e)


  toggleResolveDiscussion: (e) =>
    @setState resolveDiscussion: e.target.checked


  validPost: =>
    @state.message.length != 0

    resolved = switch event.currentTarget.dataset.action
               when 'resolve' then true
               when 'reopen' then false
               else @props.discussion.resolved

    @postXhr = $.ajax laroute.route('beatmap-discussion-posts.store'),
      method: 'POST'
