 
   @include [ScrollerMixin]
 
+  isSearching = no
+
   @defaultProps =
     title             : ''
     threads           : immutable.List()

      searchProp = thread.getIn(['channel', @props.searchProp]).toLowerCase()
      return yes  if searchProp.indexOf(value) > -1

    @setState { threads : threads, noResultText : threads.size is 0, isSearching : no }


  search: (event) ->

    { value }   = event.target
    { channel } = ActivityFlux.actions

    @setState { value, isSearching: yes }
    @setState { value }

    if value is '' then return @resetSearch()

    value = value.slice(1)  if value[0] is '#'



    super

    @state = { threads: @props.sidebarModalChannels.followed, noResultText: no, value: '' }


  onThresholdReached: ->

    return  if isSearching

    { channel } = ActivityFlux.actions

