ref(strophe): Remove and cleanup all strophe related code.
Everything strophe related is now handled in lib-jitsi-meet project.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import './native';
|
||||
|
||||
// The library lib-jitsi-meet (externally) depends on the libraries jQuery and
|
||||
// Strophe
|
||||
// The library lib-jitsi-meet (externally) depends on the libraries jQuery
|
||||
(global => {
|
||||
// jQuery
|
||||
if (typeof global.$ === 'undefined') {
|
||||
@@ -10,13 +9,6 @@ import './native';
|
||||
jQuery(global);
|
||||
global.$ = jQuery;
|
||||
}
|
||||
|
||||
// Strophe
|
||||
if (typeof global.Strophe === 'undefined') {
|
||||
require('strophe');
|
||||
require('strophejs-plugins/disco/strophe.disco');
|
||||
require('strophejs-plugins/caps/strophe.caps.jsonly');
|
||||
}
|
||||
})(global || window || this); // eslint-disable-line no-invalid-this
|
||||
|
||||
// Re-export JitsiMeetJS from the library lib-jitsi-meet to (the other features
|
||||
|
||||
@@ -143,24 +143,10 @@ function _visitNode(node, callback) {
|
||||
document.cookie = '';
|
||||
}
|
||||
|
||||
// Document.querySelector
|
||||
//
|
||||
// Required by:
|
||||
// - strophejs-plugins/caps/strophe.caps.jsonly.js
|
||||
const documentPrototype = Object.getPrototypeOf(document);
|
||||
|
||||
if (documentPrototype) {
|
||||
if (typeof documentPrototype.querySelector === 'undefined') {
|
||||
documentPrototype.querySelector = function(selectors) {
|
||||
return _querySelector(this.elementNode, selectors);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Element.querySelector
|
||||
//
|
||||
// Required by:
|
||||
// - strophejs-plugins/caps/strophe.caps.jsonly.js
|
||||
// - lib-jitsi-meet/modules/xmpp
|
||||
const elementPrototype
|
||||
= Object.getPrototypeOf(document.documentElement);
|
||||
|
||||
@@ -212,6 +198,7 @@ function _visitNode(node, callback) {
|
||||
// FIXME There is a weird infinite loop related to console.log and
|
||||
// Document and/or Element at the time of this writing. Work around it
|
||||
// by patching Node and/or overriding console.log.
|
||||
const documentPrototype = Object.getPrototypeOf(document);
|
||||
const nodePrototype
|
||||
= _getCommonPrototype(documentPrototype, elementPrototype);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @flow
|
||||
import md5 from 'js-md5';
|
||||
|
||||
import { toState } from '../redux';
|
||||
|
||||
@@ -6,7 +7,6 @@ import { DEFAULT_AVATAR_RELATIVE_PATH } from './constants';
|
||||
|
||||
declare var config: Object;
|
||||
declare var interfaceConfig: Object;
|
||||
declare var MD5: Object;
|
||||
|
||||
/**
|
||||
* Returns the URL of the image for the avatar of a specific participant.
|
||||
@@ -71,7 +71,7 @@ export function getAvatarURL({ avatarID, avatarURL, email, id }: {
|
||||
}
|
||||
}
|
||||
|
||||
return urlPrefix + MD5.hexdigest(key.trim().toLowerCase()) + urlSuffix;
|
||||
return urlPrefix + md5.hex(key.trim().toLowerCase()) + urlSuffix;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user