From b73bddf1c49b236ee1487acb9beeadc41684c437 Mon Sep 17 00:00:00 2001 From: isymchych Date: Thu, 25 Feb 2016 14:32:52 +0200 Subject: [PATCH] handle AUTH_STATUS_CHANGED event --- conference.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conference.js b/conference.js index 0fd7e8d31..44e9ddefc 100644 --- a/conference.js +++ b/conference.js @@ -624,10 +624,16 @@ export default { _setupListeners () { // add local streams when joined to the conference room.on(ConferenceEvents.CONFERENCE_JOINED, () => { - APP.UI.updateAuthInfo(room.isAuthEnabled(), room.getAuthLogin()); APP.UI.mucJoined(); }); + room.on( + ConferenceEvents.AUTH_STATUS_CHANGED, + function (authEnabled, authLogin) { + APP.UI.updateAuthInfo(authEnabled, authLogin); + } + ); + room.on(ConferenceEvents.USER_JOINED, (id, user) => { console.log('USER %s connnected', id, user);