From 820eabbed63719a2ee4fa731de74e23f245af75b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 16 Nov 2021 15:00:02 +0000 Subject: MUC: Actually set the new affiliation data if it was previously empty --- plugins/muc/muc.lib.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 8fbe2376..01704a36 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1539,6 +1539,7 @@ function room_mt:set_affiliation_data(jid, key, value) if not data then if value == nil then return true; end data = {}; + self._affiliation_data[jid] = data; end local old_value = data[key]; data[key] = value; -- cgit v1.2.3