diff --git a/modules/settings/Settings.js b/modules/settings/Settings.js index a45c63d0d..c7758f299 100644 --- a/modules/settings/Settings.js +++ b/modules/settings/Settings.js @@ -4,7 +4,7 @@ var email = ''; var displayName = ''; var userId; var language = null; -var callStatsUID; +var callStatsUserName; function supportsLocalStorage() { @@ -29,19 +29,19 @@ if (supportsLocalStorage()) { window.localStorage.jitsiMeetId = generateUniqueId(); console.log("generated id", window.localStorage.jitsiMeetId); } - if (!window.localStorage.callStatsUID) { - window.localStorage.callStatsUID = UsernameGenerator.generateUsername(); - console.log('generated callstats uid', window.localStorage.callStatsUID); + if (!window.localStorage.callStatsUserName) { + window.localStorage.callStatsUserName = UsernameGenerator.generateUsername(); + console.log('generated callstats uid', window.localStorage.callStatsUserName); } userId = window.localStorage.jitsiMeetId || ''; - callStatsUID = window.localStorage.callStatsUID; + callStatsUserName = window.localStorage.callStatsUserName; email = window.localStorage.email || ''; displayName = window.localStorage.displayname || ''; language = window.localStorage.language; } else { console.log("local storage is not supported"); userId = generateUniqueId(); - callStatsUID = UsernameGenerator.generateUsername(); + callStatsUserName = UsernameGenerator.generateUsername(); } var Settings = { @@ -67,11 +67,11 @@ var Settings = { }, /** - * Returns user id for callstats - * @returns {string} user id for callstats + * Returns fake username for callstats + * @returns {string} fake username for callstats */ - getCallStatsUID: function () { - return callStatsUID; + getCallStatsUserName: function () { + return callStatsUserName; }, setEmail: function (newEmail) { diff --git a/modules/statistics/CallStats.js b/modules/statistics/CallStats.js index 37e7e86b4..50bb3ed97 100644 --- a/modules/statistics/CallStats.js +++ b/modules/statistics/CallStats.js @@ -20,7 +20,7 @@ var CallStats = { this.session = jingleSession; this.peerconnection = jingleSession.peerconnection.peerconnection; - this.userID = Settings.getCallStatsUID(); + this.userID = Settings.getCallStatsUserName(); var location = window.location; this.confID = location.hostname + location.pathname;