   kd.singletons.socialapi.onChannelReady channel, ->
 
     channel.on 'MessageAdded', (message) ->
+
+      unless _isChannelInitiationEvent message
+        desktopNotifications.postMessageReceivedNotification message, channel
+
       bindMessageEvents message
 
       _channel = kd.singletons.socialapi.retrieveCachedItemById message.initialChannelId

kd              = require 'kd'
AppFlux         = require 'app/flux'
actions         = require '../actiontypes'
isPublicChannel = require 'app/util/isPublicChannel'

dispatch = (args...) -> kd.singletons.reactor.dispatch args...



      _dispatchFn { unreadCount, channel }

      { message } = options.lastMessage

      if _isChannelInitiationEvent message
        { addedBy } = message.payload
        desktopNotifications.postAddedToChannelNotification channel.name, addedBy

    .on 'NotificationAdded', (options)->

      if options.type is 'mention'
        desktopNotifications.postMentionedNotification options


_isChannelInitiationEvent = (message) ->
  systemType = message.payload?.systemType
  return systemType and systemType is 'initiate'


###*
 * Takes a dispatcher and returns a function that will dispatch a unread count
