 
   setThreads: kd.utils.debounce 1000, ->
 
-    @setState threads: @props.sidebarModalChannels.followed
+    @setState threads: @props.threads
 
 
   resetSearch: ->
 
-    threads = @props.sidebarModalChannels.followed
+    threads = @props.threads
     @setState threads: threads
     @setState noResultText: no  if threads.size
 
 
   filter: kd.utils.debounce 800, ->
 
-    { sidebarModalChannels } = @props
+    { threads } = @props
     { value } = @state
 
-    threads = sidebarModalChannels.followed.filter (thread) =>
+    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'


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

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


  search: (event) ->

    super

    @state =
      value             : ''
      noResultText      : no
      isSearching       : no
      threads           : @props.threads


  onThresholdReached: ->

    return  if @state.isSearching

    { channel } = ActivityFlux.actions
    loadFollowedChannels = channel[@props.onThresholdAction]
