]> granicus.if.org Git - ejabberd/commitdiff
Add Id attribute in stanza built by send_message command
authorBadlop <badlop@process-one.net>
Thu, 23 Nov 2017 16:14:39 +0000 (17:14 +0100)
committerBadlop <badlop@process-one.net>
Thu, 23 Nov 2017 16:14:39 +0000 (17:14 +0100)
src/mod_admin_extra.erl

index 799f0079f0697d9ad356538d3c36c784c46bda0b..b0216b46150e8ff79974d0297ea6cfa4a33c71ed 100644 (file)
@@ -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) ->