diff plugins/muc/mod_muc.lua @ 13908:356c8ec22e9a

MUC: Add basic "GC3" participant (affiliation) list fetch RSM version currently held back until a planned restructuring of how we store affiliations in MUC. This is because RSM needs a stable ordered list, which we don't currently have.
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Jun 2025 15:17:57 +0100
parents 0e346f4d88ce
children f5d415d54064
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Thu Jun 26 15:13:29 2025 +0100
+++ b/plugins/muc/mod_muc.lua	Thu Jun 26 15:17:57 2025 +0100
@@ -102,6 +102,10 @@
 room_mt.get_occupant_id = occupant_id.get_occupant_id;
 room_mt.get_occupant_id_from_jid = occupant_id.get_occupant_id_from_jid;
 
+if module:get_option_boolean("muc_enable_experimental_gc3", false) then
+	module:require "muc/gc3";
+end
+
 local jid_split = require "prosody.util.jid".split;
 local jid_prep = require "prosody.util.jid".prep;
 local jid_bare = require "prosody.util.jid".bare;