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
Enables the jshint maximum line length check (80 chars) globally, and only overrides it in certain files.
Boris Grozevbd58e6c799b5
diff --git a/.jshintrc b/.jshintrcindex a99d850b81..a86fe00e7d 100644--- a/.jshintrc+++ b/.jshintrc@@ -13,8 +13,7 @@"indent": 4, // {int} Number of spaces to use for indentation"latedef": true, // true: Require variables/functions to be defined before being used"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`- //TODO: set to 80 when the code is compliant..- "maxlen": 1000, // {int} Max number of characters per line+ "maxlen": 80, // {int} Max number of characters per line"latedef": false, //This option prohibits the use of a variable before it was defined"laxbreak": true //Ignore line breaks around "=", "==", "&&", etc.}diff --git a/app.js b/app.jsindex acfe554da5..1d1dcef8d2 100644--- a/app.js+++ b/app.js@@ -6,15 +6,18 @@ var APP =init: function () {this.UI = require("./modules/UI/UI");this.API = require("./modules/API/API");- this.connectionquality = require("./modules/connectionquality/connectionquality");+ this.connectionquality =+ require("./modules/connectionquality/connectionquality");this.statistics = require("./modules/statistics/statistics");this.RTC = require("./modules/RTC/RTC");- this.desktopsharing = require("./modules/desktopsharing/desktopsharing");+ this.desktopsharing =+ require("./modules/desktopsharing/desktopsharing");this.xmpp = require("./modules/xmpp/xmpp");- this.keyboardshortcut = require("./modules/keyboardshortcut/keyboardshortcut");+ this.keyboardshortcut =+ require("./modules/keyboardshortcut/keyboardshortcut");this.translation = require("./modules/translation/translation");this.settings = require("./modules/settings/Settings");- this.DTMF = require("./modules/DTMF/DTMF");+ //this.DTMF = require("./modules/DTMF/DTMF");this.members = require("./modules/members/MemberList");this.configFetch = require("./modules/config/HttpConfigFetch");}diff --git a/config.js b/config.jsindex cb250dab8e..cc05061866 100644--- a/config.js+++ b/config.js@@ -1,3 +1,4 @@+/* jshint -W101 */var config = {// configLocation: './config.json', // see ./modules/HttpConfigFetch.jshosts: {diff --git a/external_api.js b/external_api.jsindex 0c8624a2b5..3ad7a5980c 100644--- a/external_api.js+++ b/external_api.js@@ -70,7 +70,8 @@ var JitsiMeetExternalAPI = (function()if (!interfaceConfigOverwrite.hasOwnProperty(key) ||typeof key !== 'string')continue;- this.url += "&interfaceConfig." + key + "=" + interfaceConfigOverwrite[key];+ this.url += "&interfaceConfig." + key + "=" ++ interfaceConfigOverwrite[key];}}@@ -180,7 +181,8 @@ var JitsiMeetExternalAPI = (function()* {{* jid: jid //the jid of the participant* }}- * participantLeft - receives event notifications about participant that left room.+ * participantLeft - receives event notifications about the participant that+ * left the room.* The listener will receive object with the following structure:* {{* jid: jid //the jid of the participant@@ -225,7 +227,8 @@ var JitsiMeetExternalAPI = (function()* {{* jid: jid //the jid of the participant* }}- * participantLeft - receives event notifications about participant that left room.+ * participantLeft - receives event notifications about participant the that+ * left the room.* The listener will receive object with the following structure:* {{* jid: jid //the jid of the participantdiff --git a/modules/API/API.js b/modules/API/API.jsindex 1b4a804e95..73838c5409 100644--- a/modules/API/API.js+++ b/modules/API/API.js@@ -132,7 +132,8 @@ function setupListeners() {APP.xmpp.addListener(XMPPEvents.MUC_MEMBER_JOINED, function (from) {API.triggerEvent("participantJoined", {jid: from});});- APP.xmpp.addListener(XMPPEvents.MESSAGE_RECEIVED, function (from, nick, txt, myjid, stamp) {+ APP.xmpp.addListener(XMPPEvents.MESSAGE_RECEIVED,+ function (from, nick, txt, myjid, stamp) {if (from != myjid)API.triggerEvent("incomingMessage",{"from": from, "nick": nick, "message": txt, "stamp": stamp});@@ -140,10 +141,12 @@ function setupListeners() {APP.xmpp.addListener(XMPPEvents.MUC_MEMBER_LEFT, function (jid) {API.triggerEvent("participantLeft", {jid: jid});});- APP.xmpp.addListener(XMPPEvents.DISPLAY_NAME_CHANGED, function (jid, newDisplayName) {+ APP.xmpp.addListener(XMPPEvents.DISPLAY_NAME_CHANGED,+ function (jid, newDisplayName) {var name = displayName[jid];if(!name || name != newDisplayName) {- API.triggerEvent("displayNameChange", {jid: jid, displayname: newDisplayName});+ API.triggerEvent("displayNameChange",+ {jid: jid, displayname: newDisplayName});displayName[jid] = newDisplayName;}});diff --git a/modules/RTC/DataChannels.js b/modules/RTC/DataChannels.jsindex 01e8ee7c8a..0f10d71c43 100644--- a/modules/RTC/DataChannels.js+++ b/modules/RTC/DataChannels.js@@ -1,4 +1,5 @@/* global config, APP, Strophe */+/* jshint -W101 */// cache datachannels to avoid garbage collection// https://code.google.com/p/chromium/issues/detail?id=405545diff --git a/modules/RTC/RTC.js b/modules/RTC/RTC.jsindex 2b7afffd14..6f8932bf1d 100644--- a/modules/RTC/RTC.js+++ b/modules/RTC/RTC.js@@ -65,9 +65,11 @@ var RTC = {eventEmitter.removeListener(eventType, listener);},- createLocalStream: function (stream, type, change, videoType, isMuted, isGUMStream) {+ createLocalStream: function (stream, type, change, videoType,+ isMuted, isGUMStream) {- var localStream = new LocalStream(stream, type, eventEmitter, videoType, isGUMStream);+ var localStream =+ new LocalStream(stream, type, eventEmitter, videoType, isGUMStream);//in firefox we have only one stream objectif(this.localStreams.length === 0 ||this.localStreams[0].getOriginalStream() != stream)@@ -112,7 +114,8 @@ var RTC = {this.remoteStreams[jid] = {};}this.remoteStreams[jid][remoteStream.type]= remoteStream;- eventEmitter.emit(StreamEventTypes.EVENT_TYPE_REMOTE_CREATED, remoteStream);+ eventEmitter.emit(StreamEventTypes.EVENT_TYPE_REMOTE_CREATED,+ remoteStream);return remoteStream;},getPCConstraints: function () {@@ -224,7 +227,8 @@ var RTC = {stream = stream.videoStream;}var videoStream = this.rtcUtils.createStream(stream, true);- this.localVideo = this.createLocalStream(videoStream, "video", true, type);+ this.localVideo =+ this.createLocalStream(videoStream, "video", true, type);// Stop the stream to trigger onended event for old streamoldStream.stop();diff --git a/modules/RTC/RTCUtils.js b/modules/RTC/RTCUtils.jsindex 4d85cfb059..19ced59859 100644--- a/modules/RTC/RTCUtils.js+++ b/modules/RTC/RTCUtils.js@@ -1,6 +1,7 @@/* global APP, config, require, attachMediaStream, getUserMedia,RTCPeerConnection, webkitMediaStream, webkitURL, webkitRTCPeerConnection,mozRTCIceCandidate, mozRTCSessionDescription, mozRTCPeerConnection */+/* jshint -W101 */var RTCBrowserType = require("./RTCBrowserType");var Resolutions = require("../../service/RTC/Resolutions");var AdapterJS = require("./adapter.screenshare");diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex b1781f0ac7..377fd098d1 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -1,4 +1,5 @@/* global Strophe, APP, $, config, interfaceConfig, toastr */+/* jshint -W101 */var UI = {};var VideoLayout = require("./videolayout/VideoLayout.js");diff --git a/modules/UI/audio_levels/AudioLevels.js b/modules/UI/audio_levels/AudioLevels.jsindex 97e96b7338..1f86a06009 100644--- a/modules/UI/audio_levels/AudioLevels.js+++ b/modules/UI/audio_levels/AudioLevels.js@@ -1,4 +1,5 @@/* global APP, interfaceConfig, $, Strophe */+/* jshint -W101 */var CanvasUtil = require("./CanvasUtils");var ASDrawContext = null;diff --git a/modules/UI/etherpad/Etherpad.js b/modules/UI/etherpad/Etherpad.jsindex bc9687e70b..f0bf1cb4f6 100644--- a/modules/UI/etherpad/Etherpad.js+++ b/modules/UI/etherpad/Etherpad.js@@ -8,7 +8,8 @@ var UIUtil = require("../util/UIUtil");var etherpadName = null;var etherpadIFrame = null;var domain = null;-var options = "?showControls=true&showChat=false&showLineNumbers=true&useMonospaceFont=false";+var options = "?showControls=true&showChat=false&showLineNumbers=true" ++ "&useMonospaceFont=false";/**diff --git a/modules/UI/prezi/PreziPlayer.js b/modules/UI/prezi/PreziPlayer.jsindex f7c5222961..976f1db5c5 100644--- a/modules/UI/prezi/PreziPlayer.js+++ b/modules/UI/prezi/PreziPlayer.js@@ -1,4 +1,5 @@/* global PreziPlayer */+/* jshint -W101 */(function() {"use strict";var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };diff --git a/modules/UI/side_pannels/SidePanelToggler.js b/modules/UI/side_pannels/SidePanelToggler.jsindex 568905cb02..ec81cce582 100644--- a/modules/UI/side_pannels/SidePanelToggler.js+++ b/modules/UI/side_pannels/SidePanelToggler.js@@ -103,7 +103,8 @@ var PanelToggler = (function(my) {toggle(Chat,'#chatspace',function () {- // Request the focus in the nickname field or the chat input field.+ // Request the focus in the nickname field or the chat input+ // field.if ($('#nickname').css('visibility') === 'visible') {$('#nickinput').focus();} else {@@ -164,7 +165,9 @@ var PanelToggler = (function(my) {};my.isVisible = function() {- return (Chat.isVisible() || ContactList.isVisible() || SettingsMenu.isVisible());+ return (Chat.isVisible() ||+ ContactList.isVisible() ||+ SettingsMenu.isVisible());};return my;diff --git a/modules/UI/side_pannels/chat/Chat.js b/modules/UI/side_pannels/chat/Chat.jsindex 8bc8e149b1..34f4b4e5de 100644--- a/modules/UI/side_pannels/chat/Chat.js+++ b/modules/UI/side_pannels/chat/Chat.js@@ -203,7 +203,8 @@ var Chat = (function (my) {}else {var message = UIUtil.escapeHtml(value);- APP.xmpp.sendChatMessage(message, NicknameHandler.getNickname());+ APP.xmpp.sendChatMessage(message,+ NicknameHandler.getNickname());}}});diff --git a/modules/UI/side_pannels/chat/Replacement.js b/modules/UI/side_pannels/chat/Replacement.jsindex b7d0442204..fef3cb1e32 100644--- a/modules/UI/side_pannels/chat/Replacement.js+++ b/modules/UI/side_pannels/chat/Replacement.js@@ -1,3 +1,4 @@+/* jshint -W101 */var Smileys = require("./smileys.json");/*** Processes links and smileys in "body"diff --git a/modules/UI/side_pannels/settings/SettingsMenu.js b/modules/UI/side_pannels/settings/SettingsMenu.jsindex 1b1df40ea4..6012b4b42c 100644--- a/modules/UI/side_pannels/settings/SettingsMenu.js+++ b/modules/UI/side_pannels/settings/SettingsMenu.js@@ -61,7 +61,8 @@ var SettingsMenu = {},update: function() {- var newDisplayName = UIUtil.escapeHtml($('#setDisplayName').get(0).value);+ var newDisplayName =+ UIUtil.escapeHtml($('#setDisplayName').get(0).value);var newEmail = UIUtil.escapeHtml($('#setEmail').get(0).value);if(newDisplayName) {diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.jsindex 7ed5a0c62d..a8240a6181 100644--- a/modules/UI/toolbars/Toolbar.js+++ b/modules/UI/toolbars/Toolbar.js@@ -1,5 +1,6 @@/* global APP, $, buttonClick, config, lockRoom, interfaceConfig, setSharedKey,Util */+/* jshint -W101 */var messageHandler = require("../util/MessageHandler");var BottomToolbar = require("./BottomToolbar");var Prezi = require("../prezi/Prezi");diff --git a/modules/UI/util/JitsiPopover.js b/modules/UI/util/JitsiPopover.jsindex a66e628222..f99d577470 100644--- a/modules/UI/util/JitsiPopover.js+++ b/modules/UI/util/JitsiPopover.js@@ -28,7 +28,8 @@ var JitsiPopover = (function () {element.data("jitsi_popover", this);this.element = element;this.template = ' <div class="jitsipopover ' + this.options.skin +- '"><div class="arrow"></div><div class="jitsipopover-content"></div>' ++ '"><div class="arrow"></div>' ++ '<div class="jitsipopover-content"></div>' +'<div class="jitsiPopupmenuPadding"></div></div>';var self = this;this.element.on("mouseenter", function () {diff --git a/modules/UI/util/MessageHandler.js b/modules/UI/util/MessageHandler.jsindex bb08841396..9931e120c0 100644--- a/modules/UI/util/MessageHandler.js+++ b/modules/UI/util/MessageHandler.js@@ -1,4 +1,5 @@/* global $, APP, jQuery, toastr, Impromptu */+/* jshint -W101 *//*** Flag for enable/disable of the notifications.diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.jsindex 11617e9cdd..7923d4135b 100644--- a/modules/UI/videolayout/ConnectionIndicator.js+++ b/modules/UI/videolayout/ConnectionIndicator.js@@ -1,4 +1,5 @@/* global APP, $ */+/* jshint -W101 */var JitsiPopover = require("../util/JitsiPopover");/**diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.jsindex fdfcfa6fa7..625e3e2c99 100644--- a/modules/UI/videolayout/LargeVideo.js+++ b/modules/UI/videolayout/LargeVideo.js@@ -1,4 +1,5 @@/* global $, APP, Strophe, interfaceConfig */+/* jshint -W101 */var Avatar = require("../avatar/Avatar");var RTCBrowserType = require("../../RTC/RTCBrowserType");var UIUtil = require("../util/UIUtil");diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex 1240fd90ce..cdf4b194e6 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -1,4 +1,5 @@/* global $, APP, require */+/* jshint -W101 */var Avatar = require("../avatar/Avatar");var UIUtil = require("../util/UIUtil");var LargeVideo = require("./LargeVideo");diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex 49cc99adf2..4122ea6600 100644--- a/modules/UI/videolayout/VideoLayout.js+++ b/modules/UI/videolayout/VideoLayout.js@@ -1,4 +1,5 @@/* global config, APP, $, Strophe, require, interfaceConfig */+/* jshint -W101 */var AudioLevels = require("../audio_levels/AudioLevels");var ContactList = require("../side_pannels/contactlist/ContactList");var MediaStreamType = require("../../../service/RTC/MediaStreamTypes");diff --git a/modules/UI/welcome_page/RoomnameGenerator.js b/modules/UI/welcome_page/RoomnameGenerator.jsindex e10a76ec91..6b2c36fb11 100644--- a/modules/UI/welcome_page/RoomnameGenerator.js+++ b/modules/UI/welcome_page/RoomnameGenerator.js@@ -1,3 +1,4 @@+/* jshint -W101 *///var nouns = [//];var pluralNouns = [diff --git a/modules/connectionquality/connectionquality.js b/modules/connectionquality/connectionquality.jsindex e2379746f8..0ef0ff75ba 100644--- a/modules/connectionquality/connectionquality.js+++ b/modules/connectionquality/connectionquality.js@@ -1,4 +1,5 @@/* global APP, require */+/* jshint -W101 */var EventEmitter = require("events");var eventEmitter = new EventEmitter();var CQEvents = require("../../service/connectionquality/CQEvents");diff --git a/modules/keyboardshortcut/keyboardshortcut.js b/modules/keyboardshortcut/keyboardshortcut.jsindex 513893f90c..635c152aac 100644--- a/modules/keyboardshortcut/keyboardshortcut.js+++ b/modules/keyboardshortcut/keyboardshortcut.js@@ -51,7 +51,8 @@ var KeyboardShortcut = {APP.UI.clickOnVideo(keycode - "0".charCodeAt(0) + 1);}//esc while the smileys are visible hides them- } else if (keycode === 27 && $('#smileysContainer').is(':visible')) {+ } else if (keycode === 27 &&+ $('#smileysContainer').is(':visible')) {APP.UI.toggleSmileys();}};diff --git a/modules/statistics/LocalStatsCollector.js b/modules/statistics/LocalStatsCollector.jsindex 420ba9a2df..7f30d9d705 100644--- a/modules/statistics/LocalStatsCollector.js+++ b/modules/statistics/LocalStatsCollector.js@@ -66,7 +66,8 @@ function animateLevel(newLevel, lastLevel) {* @param interval stats refresh interval given in ms.* @constructor*/-function LocalStatsCollector(stream, interval, statisticsService, eventEmitter) {+function LocalStatsCollector(stream, interval,+ statisticsService, eventEmitter) {window.AudioContext = window.AudioContext || window.webkitAudioContext;this.stream = stream;this.intervalId = null;diff --git a/modules/statistics/RTPStatsCollector.js b/modules/statistics/RTPStatsCollector.jsindex d51fde7e7c..e512ed7cda 100644--- a/modules/statistics/RTPStatsCollector.js+++ b/modules/statistics/RTPStatsCollector.js@@ -1,5 +1,6 @@/* global require, ssrc2jid *//* jshint -W117 */+/* jshint -W101 */var RTCBrowserType = require("../RTC/RTCBrowserType");/* Whether we support the browser we are running into for logging statistics */diff --git a/modules/statistics/statistics.js b/modules/statistics/statistics.jsindex 2952616de8..b330540929 100644--- a/modules/statistics/statistics.js+++ b/modules/statistics/statistics.js@@ -114,13 +114,16 @@ var statistics = {start: function () {APP.RTC.addStreamListener(onStreamCreated,StreamEventTypes.EVENT_TYPE_LOCAL_CREATED);- APP.xmpp.addListener(XMPPEvents.DISPOSE_CONFERENCE, onDisposeConference);- //FIXME: we may want to change CALL INCOMING event to onnegotiationneeded+ APP.xmpp.addListener(XMPPEvents.DISPOSE_CONFERENCE,+ onDisposeConference);+ //FIXME: we may want to change CALL INCOMING event to+ // onnegotiationneededAPP.xmpp.addListener(XMPPEvents.CALL_INCOMING, function (event) {startRemoteStats(event.peerconnection);// CallStats.init(event);});- APP.xmpp.addListener(XMPPEvents.PEERCONNECTION_READY, function (session) {+ APP.xmpp.addListener(XMPPEvents.PEERCONNECTION_READY,+ function (session) {CallStats.init(session);});APP.RTC.addListener(RTCEvents.AUDIO_MUTE, function (mute) {diff --git a/modules/translation/translation.js b/modules/translation/translation.jsindex 29691aecce..de3d38fa0c 100644--- a/modules/translation/translation.js+++ b/modules/translation/translation.js@@ -31,7 +31,8 @@ var defaultOptions = {var resPath = "lang/__ns__-__lng__.json";if(lng === languages.EN)resPath = "lang/__ns__.json";- var url = i18n.functions.applyReplacement(resPath, { lng: lng, ns: ns });+ var url = i18n.functions.applyReplacement(resPath,+ { lng: lng, ns: ns });i18n.functions.ajax({url: url,success: function(data, status, xhr) {diff --git a/modules/xmpp/JingleSessionPC.js b/modules/xmpp/JingleSessionPC.jsindex 4deef71f75..66a8f67170 100644--- a/modules/xmpp/JingleSessionPC.js+++ b/modules/xmpp/JingleSessionPC.js@@ -1,4 +1,5 @@/* jshint -W117 */+/* jshint -W101 */var JingleSession = require("./JingleSession");var TraceablePeerConnection = require("./TraceablePeerConnection");var SDPDiffer = require("./SDPDiffer");diff --git a/modules/xmpp/SDP.js b/modules/xmpp/SDP.jsindex 6837d64d81..6c51c02bca 100644--- a/modules/xmpp/SDP.js+++ b/modules/xmpp/SDP.js@@ -1,3 +1,4 @@+/* jshint -W101 *//* jshint -W117 */var SDPUtil = require("./SDPUtil");diff --git a/modules/xmpp/SDPUtil.js b/modules/xmpp/SDPUtil.jsindex bde0841f6b..ad581fc06a 100644--- a/modules/xmpp/SDPUtil.js+++ b/modules/xmpp/SDPUtil.js@@ -1,3 +1,4 @@+/* jshint -W101 */var SDPUtil = {filter_special_chars: function (text) {return text.replace(/[\\\/\{,\}\+]/g, "");diff --git a/modules/xmpp/TraceablePeerConnection.js b/modules/xmpp/TraceablePeerConnection.jsindex a099e79d1e..f72055ad05 100644--- a/modules/xmpp/TraceablePeerConnection.js+++ b/modules/xmpp/TraceablePeerConnection.js@@ -1,5 +1,6 @@/* global $, config, mozRTCPeerConnection, RTCPeerConnection,webkitRTCPeerConnection, RTCSessionDescription */+/* jshint -W101 */var RTC = require('../RTC/RTC');var RTCBrowserType = require("../RTC/RTCBrowserType.js");var XMPPEvents = require("../../service/xmpp/XMPPEvents");diff --git a/modules/xmpp/recording.js b/modules/xmpp/recording.jsindex e450928377..1350d13aeb 100644--- a/modules/xmpp/recording.js+++ b/modules/xmpp/recording.js@@ -50,7 +50,8 @@ function setRecordingJirecon(state, token, callback, connection) {// TODO wait for an IQ with the real status, since this is// provisional?jireconRid = $(result).find('recording').attr('rid');- console.log('Recording ' + ((state === 'on') ? 'started' : 'stopped') ++ console.log('Recording ' ++ ((state === 'on') ? 'started' : 'stopped') +'(jirecon)' + result);recordingEnabled = state;if (state === 'off'){@@ -113,7 +114,9 @@ var Recording = {useJirecon = config.hosts &&(typeof config.hosts.jirecon != "undefined");},- toggleRecording: function (tokenEmptyCallback, recordingStateChangeCallback, connection) {+ toggleRecording: function (tokenEmptyCallback,+ recordingStateChangeCallback,+ connection) {if (!Moderator.isModerator()) {console.log('non-focus, or conference not yet organized:' +@@ -126,7 +129,9 @@ var Recording = {if (!recordingToken && !useJirecon) {tokenEmptyCallback(function (value) {setRecordingToken(value);- self.toggleRecording(tokenEmptyCallback, recordingStateChangeCallback, connection);+ self.toggleRecording(tokenEmptyCallback,+ recordingStateChangeCallback,+ connection);});return;diff --git a/modules/xmpp/strophe.jingle.js b/modules/xmpp/strophe.jingle.jsindex ed92072b9b..4b943e6c12 100644--- a/modules/xmpp/strophe.jingle.js+++ b/modules/xmpp/strophe.jingle.js@@ -1,4 +1,5 @@/* jshint -W117 */+/* jshint -W101 */var JingleSession = require("./JingleSessionPC");var XMPPEvents = require("../../service/xmpp/XMPPEvents");diff --git a/modules/xmpp/strophe.moderate.js b/modules/xmpp/strophe.moderate.jsindex 55e396462d..e808becccf 100644--- a/modules/xmpp/strophe.moderate.js+++ b/modules/xmpp/strophe.moderate.js@@ -20,7 +20,8 @@ module.exports = function (XMPP, eventEmitter) {},setMute: function (jid, mute) {console.info("set mute", mute);- var iqToFocus = $iq({to: this.connection.emuc.focusMucJid, type: 'set'})+ var iqToFocus =+ $iq({to: this.connection.emuc.focusMucJid, type: 'set'}).c('mute', {xmlns: 'http://jitsi.org/jitmeet/audio',jid: jiddiff --git a/modules/xmpp/strophe.rayo.js b/modules/xmpp/strophe.rayo.jsindex 283962358a..bc9811b64b 100644--- a/modules/xmpp/strophe.rayo.js+++ b/modules/xmpp/strophe.rayo.js@@ -11,7 +11,8 @@ module.exports = function() {}this.connection.addHandler(- this.onRayo.bind(this), this.RAYO_XMLNS, 'iq', 'set', null, null);+ this.onRayo.bind(this), this.RAYO_XMLNS, 'iq', 'set',+ null, null);},onRayo: function (iq) {console.info("Rayo IQ", iq);@@ -51,9 +52,9 @@ module.exports = function() {console.info('Dial result ', result);var resource = $(result).find('ref').attr('uri');- this.call_resource = resource.substr('xmpp:'.length);+ self.call_resource = resource.substr('xmpp:'.length);console.info(- "Received call resource: " + this.call_resource);+ "Received call resource: " + self.call_resource);},function (error) {console.info('Dial error ', error);diff --git a/modules/xmpp/xmpp.js b/modules/xmpp/xmpp.jsindex fce4d9fafe..7014064475 100644--- a/modules/xmpp/xmpp.js+++ b/modules/xmpp/xmpp.js@@ -1,4 +1,5 @@/* global $, APP, config, Strophe, Base64, $msg */+/* jshint -W101 */var Moderator = require("./moderator");var EventEmitter = require("events");var Recording = require("./recording");