Prosody module development workflow

This commit is contained in:
qvalentin 2023-01-22 12:33:13 +01:00
parent dcd9b489ef
commit 3a7eb88bc0
12 changed files with 820 additions and 20 deletions

View file

@ -10,26 +10,6 @@ local get_room_from_jid = module:require "util".get_room_from_jid;
local muc_domain_prefix = module:get_option_string("muc_mapper_domain_prefix", "conference");
local domain_name = "meet.jitsi"
function debug_table_recursive(aTable, depth)
if (depth > 5) then
return ""
end
local result = {}
for key, value in pairs(aTable) do
--log("debug", key);
if (type(value) == "table")
then
table.insert(result, string.format("\"%s\":%s", tostring(key), debug_table_recursive(value, depth + 1)))
elseif (type(value) == "function")
then
--table.insert(result, string.format("\"%s\":%s", tostring(key), debug_table_recursive(it.join(value))))
else
table.insert(result, string.format("\"%s\":\"%s\"", tostring(key), tostring(value)))
--log("debug", key);
end
end
return "{" .. table.concat(result, ",") .. "}"
end
function get_participants_for_room(room_name)
@ -141,6 +121,11 @@ end
--- Checks if event is triggered by healthchecks or focus user.
function is_system_event(event)
if event == nil or event.room == nil or event.room.jid == nil then
return true;
end
if is_healthcheck_room(event.room.jid) then
return true;
end