From: Badlop Date: Thu, 23 Nov 2017 16:14:39 +0000 (+0100) Subject: Add Id attribute in stanza built by send_message command X-Git-Tag: 17.12~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e5b343f1b8312e9f99dbdf4b31692ff8ab78f7a;p=ejabberd Add Id attribute in stanza built by send_message command --- diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 799f0079f..b0216b461 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -1541,6 +1541,7 @@ send_message(Type, From, To, Subject, Body) -> build_packet(Type, Subject, Body) -> #message{type = misc:binary_to_atom(Type), body = xmpp:mk_text(Body), + id = randoms:get_string(), subject = xmpp:mk_text(Subject)}. send_stanza(FromString, ToString, Stanza) ->