 
     super channel
 
-
-
+    channel.on 'AddedToChannel', @bound 'addParticipant'
+
+
+
+
+
+  # this is the realtime event handler for messages
   addMessage: (message) ->
 
     return  if message.account._id is KD.whoami()._id


  replaceFakeItemView: (message) ->
    index = @listController.getListView().getItemIndex @fakeMessageMap[message.clientRequestId]
    item = @putMessage message, index
    @removeFakeMessage message.clientRequestId
    @scrollDown item


        @input.input.setPlaceholder ''
        @scrollDown()

    list = @listController.getListView()

    list.on 'ItemWasAdded',     @bound 'messageAdded'
    list.on 'ItemWasRemoved',   @bound 'messageRemoved'
    list.on 'EditMessageReset', @input.bound 'focus'

    KD.singleton('windowController').on 'ScrollHappened', @bound 'handleScroll'

