From ea32d3f02c7a01a94998977c9bc1bf2d6d175777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 11 Feb 2019 13:03:57 +0100 Subject: [PATCH] Send mucsub subscriber notification events with from set to room jid --- src/mod_muc_room.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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