MUC: Correct advertising of subject write access (really fixes #1155) 0.11
authorKim Alvefur <zash@zash.se>
Sun, 04 Oct 2020 18:00:32 +0200
branch0.11
changeset 11132 c3eefb517b7b
parent 11128 1aea75b63d0a
child 11144 e17b98feb0b7
MUC: Correct advertising of subject write access (really fixes #1155) Thanks pep. and lovetox XEP-0045 ยง6.4: > any field defined for the muc\#roomconfig FORM_TYPE can be included in > the extended service discovery fields Probably happened because the same mistake is in #1155
plugins/muc/subject.lib.lua
--- a/plugins/muc/subject.lib.lua	Sat Oct 03 15:03:09 2020 +0200
+++ b/plugins/muc/subject.lib.lua	Sun Oct 04 18:00:32 2020 +0200
@@ -31,10 +31,10 @@
 
 module:hook("muc-disco#info", function (event)
 	table.insert(event.form, {
-		name = "muc#roominfo_changesubject";
+		name = "muc#roomconfig_changesubject";
 		type = "boolean";
 	});
-	event.formdata["muc#roominfo_changesubject"] = get_changesubject(event.room);
+	event.formdata["muc#roomconfig_changesubject"] = get_changesubject(event.room);
 end);
 
 module:hook("muc-config-form", function(event)