summaryrefslogtreecommitdiff
path: root/src/mod_admin_extra.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2017-11-23 17:14:39 +0100
committerBadlop <badlop@process-one.net>2017-11-23 17:14:39 +0100
commit0e5b343f1b8312e9f99dbdf4b31692ff8ab78f7a (patch)
tree108415e4d6d937039e1fb3a12fca93cc180778c6 /src/mod_admin_extra.erl
parentUse ejabberd_pkix API in mod_sip (diff)
Add Id attribute in stanza built by send_message command
Diffstat (limited to 'src/mod_admin_extra.erl')
-rw-r--r--src/mod_admin_extra.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl
index 799f0079..b0216b46 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) ->