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
1 changed files with 1 additions and 0 deletions

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