Send mucsub subscriber notification events with from set to room jid

This commit is contained in:
Paweł Chmielowski 2019-02-11 13:03:57 +01:00
parent 2819e26c8f
commit ea32d3f02c
1 changed files with 1 additions and 1 deletions

View 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