 getGroup                   = require 'app/util/getGroup'
 SidebarPublicChannelsTabs  = require 'activity/constants/sidebarpublicchannelstabs'
 ResultStates               = require 'activity/constants/resultStates'
+isKoding = require 'app/util/isKoding'
 
 withEmptyMap  = (storeData) -> storeData or immutable.Map()
 withEmptyList = (storeData) -> storeData or immutable.List()

  FollowedPublicChannelIdsStore
  allChannels
  (ids, channels) ->
    ids
      .map (id) -> channels.get id
      .sortBy (c) -> c.get 'name'
]

# Maps followed public channel ids with relevant channel instances.


allChannels = [
  ChannelsStore, (channels) ->
    return channels  if isKoding()
    channels.filterNot (channel) -> 'group' is channel.get 'typeConstant'
]

