Reputation: 83
I'm trying to change MUC description with these stanza
<iq from='[email protected]' to='[email protected]' type='set' xmlns='jabber:client' id='4fd8ab1b-75e2-4488-a299-124a5e0aa8a3:sendIQ'><query xmlns='http://jabber.org/protocol/muc#owner'><x xmlns='jabber:x:data' type='submit'><field var='muc#roominfo_description'><value>description</value></field></x></query></iq>
Server replies with these
<error xmlns="jabber:client" code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Unknown field 'muc#roominfo_description' of type 'http://jabber.org/protocol/muc#roomconfig'</text></error>
Am i doing something wrong?
Ejabberd 18.06 CentOS 6
Upvotes: 0
Views: 130
Reputation: 58
I think you're using wrong Attribute in your xml.
Just replace
<field var='muc#roominfo_description
to
<field var='muc#roomconfig_roomdesc
and you are done :)
Upvotes: 2