26
1
mirror of https://github.com/processone/ejabberd.git synced 2025-01-03 18:02:28 +01:00

Include id in mucsub notification message

This commit is contained in:
Paweł Chmielowski 2019-03-28 14:43:22 +01:00
parent ee2b441b0f
commit 063869603a

View File

@ -4435,13 +4435,15 @@ send_wrapped(From, To, Packet, Node, State) ->
-spec wrap(jid(), jid(), stanza(), binary()) -> message(). -spec wrap(jid(), jid(), stanza(), binary()) -> message().
wrap(From, To, Packet, Node) -> wrap(From, To, Packet, Node) ->
El = xmpp:set_from_to(Packet, From, To), El = xmpp:set_from_to(Packet, From, To),
Id = p1_rand:get_string(),
#message{ #message{
sub_els = [#ps_event{ id = Id,
items = #ps_items{ sub_els = [#ps_event{
node = Node, items = #ps_items{
items = [#ps_item{ node = Node,
id = p1_rand:get_string(), items = [#ps_item{
sub_els = [El]}]}}]}. id = Id,
sub_els = [El]}]}}]}.
-spec send_wrapped_multiple(jid(), map(), stanza(), binary(), state()) -> ok. -spec send_wrapped_multiple(jid(), map(), stanza(), binary(), state()) -> ok.
send_wrapped_multiple(From, Users, Packet, Node, State) -> send_wrapped_multiple(From, Users, Packet, Node, State) ->