MUC: Actually set the new affiliation data if it was previously empty
authorMatthew Wild <mwild1@gmail.com>
Tue, 16 Nov 2021 15:00:02 +0000
changeset 11919 e0b58717f0c5
parent 11918 8f7946ce7d66
child 11920 5dae9262f81f
MUC: Actually set the new affiliation data if it was previously empty
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Tue Nov 16 13:53:30 2021 +0100
+++ b/plugins/muc/muc.lib.lua	Tue Nov 16 15:00:02 2021 +0000
@@ -1539,6 +1539,7 @@
 	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;