diff --git a/src/js/firechat.js b/src/js/firechat.js index 733785c..5fac177 100644 --- a/src/js/firechat.js +++ b/src/js/firechat.js @@ -181,6 +181,7 @@ // Event to monitor current user state. _onUpdateUser: function(snapshot) { this._user = snapshot.val(); + this._userName = this._user.name; this._invokeEventCallbacks('user-update', this._user); },