aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2019-02-11 13:03:57 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2019-02-11 13:04:06 +0100
commitea32d3f02c7a01a94998977c9bc1bf2d6d175777 (patch)
tree863c0ac8f96786f9e3960790e25a527c3c65514e
parentAdd notice about rooms_unused_destroy using the room history (#2787) (diff)
Send mucsub subscriber notification events with from set to room jid
-rw-r--r--src/mod_muc_room.erl2
1 files changed, 1 insertions, 1 deletions
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