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
--- 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)