Skip to content

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

fix: Clear prosody utils and removes a debug statement.

damencho53cea31bb882
diff --git a/resources/prosody-plugins/mod_muc_domain_mapper.lua b/resources/prosody-plugins/mod_muc_domain_mapper.lua
index 512b97ef8d..967827c4d2 100644
--- a/resources/prosody-plugins/mod_muc_domain_mapper.lua
+++ b/resources/prosody-plugins/mod_muc_domain_mapper.lua
@@ -3,8 +3,6 @@
-- It is recommended to set muc_mapper_domain_base to the main domain being served (example.com)
-local jid = require "util.jid";
-
local filters = require "util.filters";
local muc_domain_base = module:get_option_string("muc_mapper_domain_base");
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.lua
index cdb27e16c3..c0689997e6 100644
--- a/resources/prosody-plugins/util.lib.lua
+++ b/resources/prosody-plugins/util.lib.lua
@@ -63,9 +63,8 @@ local function room_jid_match_rewrite(room_jid, stanza)
roomless_iqs[stanza.attr.id] = stanza.attr.to;
end
end
- room_jid = jid.join(new_node, new_host, new_resource);
- -- module:log("debug", "Rewrote to %s", room_jid);
- return room_jid
+
+ return jid.join(new_node, new_host, new_resource);
end
-- Utility function to check and convert a room JID from real [foo][email protected] to virtual [email protected]
@@ -90,10 +89,7 @@ local function internal_room_jid_match_rewrite(room_jid, stanza)
end
-- Ok, rewrite room_jid address to pretty format
- local new_node, new_host, new_resource = target_node, muc_domain_prefix..".".. target_subdomain.."."..muc_domain_base, resource;
- room_jid = jid.join(new_node, new_host, new_resource);
- -- module:log("debug", "Rewrote to %s", room_jid);
- return room_jid
+ return jid.join(target_node, muc_domain_prefix..".".. target_subdomain.."."..muc_domain_base, resource);
end
--- Finds and returns room by its jid
@@ -199,8 +195,6 @@ function update_presence_identity(
return tag
end
)
- module:log("debug",
- "Presence after previous identity stripped: %s", tostring(stanza));
stanza:tag("identity"):tag("user");
for k, v in pairs(user) do
@@ -229,8 +223,6 @@ function update_presence_identity(
stanza:up();
end
- module:log("debug",
- "Presence with identity inserted %s", tostring(stanza))
end
-- Utility function to check whether feature is present and enabled. Allow