mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Fix last commit
This commit is contained in:
parent
2b363c7aee
commit
0633dd5802
@ -4089,7 +4089,7 @@ send_subscriptions_change_notifications(From, Nick, Type, State) ->
|
|||||||
true -> true;
|
true -> true;
|
||||||
_ -> false
|
_ -> false
|
||||||
end,
|
end,
|
||||||
Packet = case {Type, ShowJid} of
|
Payload = case {Type, ShowJid} of
|
||||||
{subscribe, true} ->
|
{subscribe, true} ->
|
||||||
#muc_subscribe{jid = From, nick = Nick};
|
#muc_subscribe{jid = From, nick = Nick};
|
||||||
{subscribe, _} ->
|
{subscribe, _} ->
|
||||||
@ -4099,8 +4099,14 @@ send_subscriptions_change_notifications(From, Nick, Type, State) ->
|
|||||||
{unsubscribe, _} ->
|
{unsubscribe, _} ->
|
||||||
#muc_unsubscribe{nick = Nick}
|
#muc_unsubscribe{nick = Nick}
|
||||||
end,
|
end,
|
||||||
NewPacket = wrap(From, JID, Packet, ?NS_MUCSUB_NODES_SUBSCRIBERS),
|
Packet = #message{
|
||||||
ejabberd_router:route(xmpp:set_from_to(NewPacket, From, JID));
|
sub_els = [#ps_event{
|
||||||
|
items = #ps_items{
|
||||||
|
node = ?NS_MUCSUB_NODES_SUBSCRIBERS,
|
||||||
|
items = [#ps_item{
|
||||||
|
id = randoms:get_string(),
|
||||||
|
xml_els = [xmpp:encode(Payload)]}]}}]},
|
||||||
|
ejabberd_router:route(xmpp:set_from_to(Packet, From, JID));
|
||||||
false ->
|
false ->
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user