Skip to content

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

Verify full (and not bare) JID of the Jingle sender, since everyone in the MUC has the same bare JID.

Boris Grozev79ac1e800fe6
diff --git a/modules/xmpp/strophe.jingle.js b/modules/xmpp/strophe.jingle.js
index 662f0faa82..239db2d492 100644
--- a/modules/xmpp/strophe.jingle.js
+++ b/modules/xmpp/strophe.jingle.js
@@ -88,9 +88,8 @@ module.exports = function(XMPP, eventEmitter)
this.connection.send(ack);
return true;
}
- // compare from to sess.peerjid (bare jid comparison for later compat with message-mode)
// local jid is not checked
- if (Strophe.getBareJidFromJid(fromJid) != Strophe.getBareJidFromJid(sess.peerjid)) {
+ if (fromJid != sess.peerjid) {
console.warn('jid mismatch for session id', sid, fromJid, sess.peerjid);
ack.type = 'error';
ack.c('error', {type: 'cancel'})