25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Add Id attribute in stanza built by send_message command

This commit is contained in:
Badlop 2017-11-23 17:14:39 +01:00
parent 25f7f974b9
commit 0e5b343f1b

View 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) ->