25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

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

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