Bläddra i källkod

fix: Dial-out after setting password in the meeting.

dev1
damencho 4 år sedan
förälder
incheckning
86e3689748
1 ändrade filer med 10 tillägg och 1 borttagningar
  1. 10
    1
      modules/xmpp/ChatRoom.js

+ 10
- 1
modules/xmpp/ChatRoom.js Visa fil

@@ -1303,7 +1303,16 @@ export default class ChatRoom extends Listenable {
1303 1303
                         .up()
1304 1304
                         .up();
1305 1305
 
1306
-                    this.connection.sendIQ(formsubmit, onSuccess, onError);
1306
+                    this.connection.sendIQ(
1307
+                        formsubmit,
1308
+                        () => {
1309
+
1310
+                            // we set the password in chat room so we can use it
1311
+                            // later when dialing out
1312
+                            this.password = key;
1313
+                            onSuccess();
1314
+                        },
1315
+                        onError);
1307 1316
                 } else {
1308 1317
                     onNotSupported();
1309 1318
                 }

Laddar…
Avbryt
Spara