Browse Source

handle AUTH_STATUS_CHANGED event

master
isymchych 9 years ago
parent
commit
b73bddf1c4
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      conference.js

+ 7
- 1
conference.js View File

@@ -624,10 +624,16 @@ export default {
624 624
     _setupListeners () {
625 625
         // add local streams when joined to the conference
626 626
         room.on(ConferenceEvents.CONFERENCE_JOINED, () => {
627
-            APP.UI.updateAuthInfo(room.isAuthEnabled(), room.getAuthLogin());
628 627
             APP.UI.mucJoined();
629 628
         });
630 629
 
630
+        room.on(
631
+            ConferenceEvents.AUTH_STATUS_CHANGED,
632
+            function (authEnabled, authLogin) {
633
+                APP.UI.updateAuthInfo(authEnabled, authLogin);
634
+            }
635
+        );
636
+
631 637
 
632 638
         room.on(ConferenceEvents.USER_JOINED, (id, user) => {
633 639
             console.log('USER %s connnected', id, user);

Loading…
Cancel
Save