         @broadcastOwnMessage messageBody, PUBLIC, name
 
     # Delegates to the channel to handle received message
-    @broadcaster.on channelName, (msg) =>
-      @deliverMessageToChannel channel, msg
+    @broadcaster.on channelName, (msg) =>      
+      @deliverMessageToChannel channel, msg      
 
     @channels[name] = channel
 

  newMessage: (message) ->
    @chatController.getListView().addItem message

class ChatListItemView extends KDListItemView
  viewAppended: ->
    @setTemplate @pistachio()


  messageReceived: (message) ->
    @messages.push message
    unless @view.isActive()
      @unreadCount++ 
      @view.setUnreadCount @unreadCount
    @view.newMessage message

class ChatView extends KDView
