 module.exports = class SidebarModalList extends React.Component
 
   @include [ScrollerMixin]
-
-  isSearching = no
 
   @defaultProps =
     title             : ''


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

    kd.utils.wait 1000, ->
      isSearching = no


  search: (event) ->


  setThreads: kd.utils.debounce 1000, ->

    @setState threads: @props.threads


  resetSearch: ->

    threads = @props.threads
    @setState threads: threads
    @setState noResultText: no  if threads.size


  filter: kd.utils.debounce 800, ->

    { threads } = @props
    { value } = @state

    threads = threads.filter (thread) =>
      typeConstant = thread.getIn ['channel', 'typeConstant']
      if @props.searchProp is 'purpose' and typeConstant is 'bot'
        thread = thread.setIn ['channel', 'purpose'], 'Bot Koding'
