From 063869603a866e0563e17e8d7c7da89d51acb258 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Chmielowski?= Date: Thu, 28 Mar 2019 14:43:22 +0100 Subject: [PATCH] Include id in mucsub notification message --- src/mod_muc_room.erl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index a048272ca..1627b8866 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -4435,13 +4435,15 @@ send_wrapped(From, To, Packet, Node, State) -> -spec wrap(jid(), jid(), stanza(), binary()) -> message(). wrap(From, To, Packet, Node) -> El = xmpp:set_from_to(Packet, From, To), + Id = p1_rand:get_string(), #message{ - sub_els = [#ps_event{ - items = #ps_items{ - node = Node, - items = [#ps_item{ - id = p1_rand:get_string(), - sub_els = [El]}]}}]}. + id = Id, + sub_els = [#ps_event{ + items = #ps_items{ + node = Node, + items = [#ps_item{ + id = Id, + sub_els = [El]}]}}]}. -spec send_wrapped_multiple(jid(), map(), stanza(), binary(), state()) -> ok. send_wrapped_multiple(From, Users, Packet, Node, State) -> -- 2.40.0