Browse Source

handle AUTH_STATUS_CHANGED event

master
isymchych 10 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
     _setupListeners () {
624
     _setupListeners () {
625
         // add local streams when joined to the conference
625
         // add local streams when joined to the conference
626
         room.on(ConferenceEvents.CONFERENCE_JOINED, () => {
626
         room.on(ConferenceEvents.CONFERENCE_JOINED, () => {
627
-            APP.UI.updateAuthInfo(room.isAuthEnabled(), room.getAuthLogin());
628
             APP.UI.mucJoined();
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
         room.on(ConferenceEvents.USER_JOINED, (id, user) => {
638
         room.on(ConferenceEvents.USER_JOINED, (id, user) => {
633
             console.log('USER %s connnected', id, user);
639
             console.log('USER %s connnected', id, user);

Loading…
Cancel
Save