mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Do not forget to include xmlns in mam prefs response (#859)
This commit is contained in:
parent
be4d687a86
commit
4c47ee63f2
1 changed files with 2 additions and 1 deletions
|
@ -324,7 +324,8 @@ process_iq(#jid{luser = LUser, lserver = LServer},
|
||||||
children = JFun(Prefs#archive_prefs.never)},
|
children = JFun(Prefs#archive_prefs.never)},
|
||||||
IQ#iq{type = result,
|
IQ#iq{type = result,
|
||||||
sub_el = [#xmlel{name = <<"prefs">>,
|
sub_el = [#xmlel{name = <<"prefs">>,
|
||||||
attrs = [{<<"default">>, Default}],
|
attrs = [{<<"xmlns">>, IQ#iq.xmlns},
|
||||||
|
{<<"default">>, Default}],
|
||||||
children = [Always, Never]}]};
|
children = [Always, Never]}]};
|
||||||
process_iq(_, _, #iq{sub_el = SubEl} = IQ) ->
|
process_iq(_, _, #iq{sub_el = SubEl} = IQ) ->
|
||||||
IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]}.
|
IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue