From: Paweł Chmielowski Date: Mon, 11 Feb 2019 12:03:57 +0000 (+0100) Subject: Send mucsub subscriber notification events with from set to room jid X-Git-Tag: 19.02~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea32d3f02c7a01a94998977c9bc1bf2d6d175777;p=ejabberd Send mucsub subscriber notification events with from set to room jid --- diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 032b294b0..135e89d77 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -4365,7 +4365,7 @@ send_subscriptions_change_notifications(From, Nick, Type, State) -> items = [#ps_item{ id = p1_rand:get_string(), sub_els = [Payload]}]}}]}, - ejabberd_router:route(xmpp:set_from_to(Packet, From, JID)); + ejabberd_router:route(xmpp:set_from_to(Packet, State#state.jid, JID)); false -> ok end