]> granicus.if.org Git - ejabberd/commitdiff
Send mucsub subscriber notification events with from set to room jid
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 11 Feb 2019 12:03:57 +0000 (13:03 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 11 Feb 2019 12:04:06 +0000 (13:04 +0100)
src/mod_muc_room.erl

index 032b294b07f31e6e7db6417dcefad404680baf4c..135e89d773c2e8435d22847420d77b83586f4d9d 100644 (file)
@@ -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