Do not forget to include xmlns in mam prefs response (#859)

This commit is contained in:
Evgeniy Khramtsov 2015-12-09 12:52:30 +03:00
parent be4d687a86
commit 4c47ee63f2
1 changed files with 2 additions and 1 deletions

View File

@ -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]}.