Diff

mod_muc_members_json/mod_muc_members_json.lua @ 5856:75dee6127829

Merge upstream
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Tue, 06 Feb 2024 18:32:01 +0700 (16 months ago)
parent 5680:80abda15a1e9
line wrap: on
line diff
--- a/mod_muc_members_json/mod_muc_members_json.lua	Tue Aug 29 23:51:17 2023 +0700
+++ b/mod_muc_members_json/mod_muc_members_json.lua	Tue Feb 06 18:32:01 2024 +0700
@@ -80,7 +80,7 @@
 					end
 					-- Remove affiliation from folk who weren't in the source data but previously were
 					for jid, aff, data in muc:each_affiliation() do
-						if not jids[jid] and data.source == module.name then
+						if not jids[jid] and data and data.source == module.name then
 							muc:set_affiliation(true, jid, "none", "imported membership lost");
 						end
 					end