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:
parent
8b1eead24b
commit
15ddd00ad4
|
@ -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)}]
|
||||
|
|
Loading…
Reference in New Issue