mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
Add Id attribute in stanza built by send_message command
This commit is contained in:
parent
25f7f974b9
commit
0e5b343f1b
@ -1541,6 +1541,7 @@ send_message(Type, From, To, Subject, Body) ->
|
|||||||
build_packet(Type, Subject, Body) ->
|
build_packet(Type, Subject, Body) ->
|
||||||
#message{type = misc:binary_to_atom(Type),
|
#message{type = misc:binary_to_atom(Type),
|
||||||
body = xmpp:mk_text(Body),
|
body = xmpp:mk_text(Body),
|
||||||
|
id = randoms:get_string(),
|
||||||
subject = xmpp:mk_text(Subject)}.
|
subject = xmpp:mk_text(Subject)}.
|
||||||
|
|
||||||
send_stanza(FromString, ToString, Stanza) ->
|
send_stanza(FromString, ToString, Stanza) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user