MUC: Pass description via formdata field where it should be
authorKim Alvefur <zash@zash.se>
Sat, 26 May 2018 15:09:27 +0200
changeset 8833 5d7db3c7c026
parent 8832 6dd7fea941f6
child 8834 f25fa63750fb
MUC: Pass description via formdata field where it should be
plugins/muc/description.lib.lua
--- a/plugins/muc/description.lib.lua	Sat May 26 14:44:50 2018 +0200
+++ b/plugins/muc/description.lib.lua	Sat May 26 15:09:27 2018 +0200
@@ -22,8 +22,9 @@
 	table.insert(event.form, {
 		name = "muc#roominfo_description";
 		label = "Description";
-		value = get_description(event.room) or "";
+		value = "";
 	});
+	event.formdata["muc#roominfo_description"] = get_description(event.room);
 end
 
 local function add_form_option(event)