mod_mam: Specify namespace for MAM messages

The "jabber:client" namespace must be explicitly specified for MAM
messages, as they would otherwise inherit the "urn:xmpp:forward:0"
namespace.
This commit is contained in:
Holger Weiss 2015-03-03 07:14:25 +01:00
parent 8b1eead24b
commit 15ddd00ad4
1 changed files with 3 additions and 1 deletions

View File

@ -867,7 +867,9 @@ send_mam_message(#jid{luser = U, lserver = S} = JID, QueryID,
attrs = [{<<"xmlns">>, ?NS_HINTS}]},
Forwarded = #xmlel{name = <<"forwarded">>,
attrs = [{<<"xmlns">>, ?NS_FORWARD}],
children = [Stanza]},
children = [xml:replace_tag_attr(<<"xmlns">>,
<<"jabber:client">>,
Stanza)]},
Result = #xmlel{name = <<"result">>,
attrs = [{<<"xmlns">>, ?NS_MAM},
{<<"id">>, jlib:integer_to_binary(MamID)}]