Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
add display name to stats debug info
Emil Ivov097c008a6347
diff --git a/modules/settings/Settings.js b/modules/settings/Settings.jsindex 4dd05d543f..2d322e22ef 100644--- a/modules/settings/Settings.js+++ b/modules/settings/Settings.js@@ -36,16 +36,33 @@ if (supportsLocalStorage()) {}var Settings = {++ /**+ * Sets the local user display name and saves it to local storage+ *+ * @param newDisplayName the new display name for the local user+ * @returns {string} the display name we just set+ */setDisplayName: function (newDisplayName) {displayName = newDisplayName;window.localStorage.displayname = displayName;return displayName;},++ /**+ * Returns the currently used by the user+ * @returns {string} currently valid user display name.+ */+ getDisplayName: function () {+ return displayName;+ },+setEmail: function (newEmail) {email = newEmail;window.localStorage.email = newEmail;return email;},+getSettings: function () {return {email: email,diff --git a/modules/statistics/CallStats.js b/modules/statistics/CallStats.jsindex 1adc7082bc..9fac6cc417 100644--- a/modules/statistics/CallStats.js+++ b/modules/statistics/CallStats.js@@ -1,4 +1,6 @@/* global config, $, APP, Strophe, callstats */++var Settings = require('../settings/Settings');var jsSHA = require('jssha');var io = require('socket.io-client');var callStats = null;@@ -20,6 +22,10 @@ var CallStats = {this.userID = APP.xmpp.myResource();+ //use whatever the user said to facilitate debugging+ if(Settings.getDisplayName())+ this.userID = Settings.getDisplayName();+var location = window.location;this.confID = location.hostname + location.pathname;