Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

ref: Moves xmpp logs to be accessed from connection. (#7517)

Дамян Минков4ca4e242b161
diff --git a/conference.js b/conference.js
index d0877b5617..d4a5c47903 100644
--- a/conference.js
+++ b/conference.js
@@ -759,7 +759,13 @@ export default {
}
if (isPrejoinPageEnabled(APP.store.getState())) {
- _connectionPromise = connect(roomName);
+ _connectionPromise = connect(roomName).then(c => {
+ // we want to initialize it early, in case of errors to be able
+ // to gather logs
+ APP.connection = c;
+
+ return c;
+ });
const { tryCreateLocalTracks, errors } = this.createInitialLocalTracks(initialOptions);
const tracks = await tryCreateLocalTracks;
@@ -1206,10 +1212,6 @@ export default {
// end used by torture
- getLogs() {
- return room.getLogs();
- },
-
/**
* Download logs, a function that can be called from console while
* debugging.
@@ -1218,7 +1220,7 @@ export default {
saveLogs(filename = 'meetlog.json') {
// this can be called from console and will not have reference to this
// that's why we reference the global var
- const logs = APP.conference.getLogs();
+ const logs = APP.connection.getLogs();
const data = encodeURIComponent(JSON.stringify(logs, null, ' '));
const elem = document.createElement('a');
diff --git a/package-lock.json b/package-lock.json
index 5dc82aa049..d8b2693644 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -17945,8 +17945,8 @@
}
},
"lib-jitsi-meet": {
- "version": "github:jitsi/lib-jitsi-meet#372020a71d91eb4911cd3fb76164f2ffa0cd8b2f",
- "from": "github:jitsi/lib-jitsi-meet#372020a71d91eb4911cd3fb76164f2ffa0cd8b2f",
+ "version": "github:jitsi/lib-jitsi-meet#3ac82faa2d6a0e09428b89409b1c89cce08904bf",
+ "from": "github:jitsi/lib-jitsi-meet#3ac82faa2d6a0e09428b89409b1c89cce08904bf",
"requires": {
"@jitsi/js-utils": "1.0.0",
"@jitsi/sdp-interop": "1.0.3",
diff --git a/package.json b/package.json
index 4ec3315d08..9365fde67c 100644
--- a/package.json
+++ b/package.json
@@ -56,7 +56,7 @@
"jquery-i18next": "1.2.1",
"js-md5": "0.6.1",
"jwt-decode": "2.2.0",
- "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#372020a71d91eb4911cd3fb76164f2ffa0cd8b2f",
+ "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#3ac82faa2d6a0e09428b89409b1c89cce08904bf",
"libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
"lodash": "4.17.19",
"moment": "2.19.4",