     else
       Panel::showHintModal.call @getActivePanel()
 
-  manageUserAvatars: (userStatus) ->
-    for own nickname, status of userStatus
-      if status is "online"
+  manageUserAvatars: (users) ->
+    for own nickname, data of users
+      if data.status is "online"
         unless @avatars[nickname]
           @createUserAvatar @users[nickname]
       else


  removeUserAvatar: (nickname) ->
    avatarView = @avatars[nickname]
    avatarView.setClass "fade-out"
    avatarView.once "transitionend", =>
      avatarView.destroy()
      delete @avatars[nickname]
      @avatarsView.unsetClass "has-user" if @avatars.length is 0

  sendSystemMessage: (messageData) ->
    return unless @getOptions().enableChat

      @sendSystemMessage data

    KD.singleton("windowController").addUnloadListener "window", =>
      @workspaceRef.remove()  if @amIHost()

    @chatView.sendWelcomeMessage()  if @amIHost()

