mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Do not forget to include xmlns in mam prefs response (#859)
This commit is contained in:
parent
be4d687a86
commit
4c47ee63f2
@ -324,7 +324,8 @@ process_iq(#jid{luser = LUser, lserver = LServer},
|
||||
children = JFun(Prefs#archive_prefs.never)},
|
||||
IQ#iq{type = result,
|
||||
sub_el = [#xmlel{name = <<"prefs">>,
|
||||
attrs = [{<<"default">>, Default}],
|
||||
attrs = [{<<"xmlns">>, IQ#iq.xmlns},
|
||||
{<<"default">>, Default}],
|
||||
children = [Always, Never]}]};
|
||||
process_iq(_, _, #iq{sub_el = SubEl} = IQ) ->
|
||||
IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]}.
|
||||
|
Loading…
Reference in New Issue
Block a user