         @$element.find('section.conversation').append(@$file_upload)
         @$file_upload.on 'change', @file_upload.bind(this)
 
+  sync_user_logged_on: (e, user, index, location) ->
+    console.log('i hear logged in')
+    console.log(arguments)
+    if @menu is "add_users"
+      view = new UserView(user, this)
+      view.render()
+      if location is "first" or location is "last"
+        console.log('first or last')
+        @$discussion.children().eq(-1).before(view.$element)
+      else
+        console.log("middle!!!!!")
+        @$discussion.find('li.user').eq(index).before(view.$element)
+
+  sync_user_logged_off: (e, user, index) ->
+    if @menu is "add_users"
+      @$discussion.find('li.user').eq(index).remove()
+      return
+
+
+  sync_new_convo: (e, convo) ->
+
 
 
 

          view = new PersistentConversationView(convo, this)
          view.render()
          @$discussion.append(view.$element)
      @switchmode = true
    else
      @render()
      @loadPersistentMessages()
      @switchmode = false


  add_users_to_convo: (e) ->
    e.preventDefault()
    @new_convo_params = []
    @$discussion.children().remove()
    @$discussion.append('<input class="search" placeholder="Add People">')


  cancel_add_users: (e) ->
    e.preventDefault()
    @render()
    @loadPersistentMessages()
    @new_convo_params = []

  confirm_new_convo_params: (e) ->
    e.preventDefault()
