 isMyPost                         = require 'app/util/isMyPost'
 fetchAccounts                    = require 'app/util/fetchAccounts'
 
+ParticipantHeads = require './participantheads'
+ChannelParticipantsModel = require 'activity/models/channelparticipants'
 
 
 module.exports = class PrivateMessagePane extends MessagePane

    @emit 'NewParticipantButtonClicked'

    @autoCompleteForm.toggleClass 'active'
    @newParticipantButton.toggleClass 'active'
    @autoComplete.getView().setFocus()  if @autoCompleteForm.hasClass 'active'




    @forwardEvent @actionsMenu, 'LeftChannel'

    @participantsModel = new ChannelParticipantsModel { channel }
    @participantsView.addSubView @participantHeads = new ParticipantHeads

    @participantHeads.on 'NewParticipantButtonClicked', @bound 'toggleAutoCompleteInput'

    @participantsModel.addChangeListener @participantHeads.bound 'updateParticipants'


  toggleAutoCompleteInput: ->
