_ = require 'underscore-plus' React = require 'react' {FocusedContentStore} = require 'inbox-exports' class MessageSubjectItem extends React.Component @displayName: 'MessageSubjectItem' constructor: (@props) -> @state = @_getStateFromStores() componentDidMount: => @_unsubscriber = FocusedContentStore.listen @_onChange componentWillUnmount: => @_unsubscriber() if @_unsubscriber render: =>