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
fix: Fixes table equals.
damenchobf8d83953b13
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.luaindex f16e267097..550fcb14ac 100644--- a/resources/prosody-plugins/util.lib.lua+++ b/resources/prosody-plugins/util.lib.lua@@ -620,11 +620,14 @@ endlocal function table_compare(old_table, new_table)local removed = {}local added = {}+ local modified = {}-- Find removed items (in old but not in new)for id, _ in pairs(old_table) doif new_table[id] == nil thentable.insert(removed, id)+ elseif new_table[id] ~= value then+ table.insert(modified, id)endend@@ -635,7 +638,7 @@ local function table_compare(old_table, new_table)endend- return removed, added+ return removed, added, modifiedendlocal function table_equals(t1, t2)@@ -646,9 +649,9 @@ local function table_equals(t1, t2)return t1 == nil;end- local removed, added = table_compare(t1, t2);+ local removed, added, modified = table_compare(t1, t2);- return next(removed) == nil and next(added) == nil+ return next(removed) == nil and next(added) == nil and next(modified) == nilend-- Splits a string using delimiter