mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix exception in mucsub {un}subscription events multicast handler
While those event are wrapped in mucsub envelope they doesn't contain regular messages that require updating 'to' attribute, so don't process in that same way as events with wrapped message in them.
This commit is contained in:
parent
2cdda4cf49
commit
132ebb8f2d
@ -5097,7 +5097,7 @@ send_subscriptions_change_notifications(From, Nick, Type, State) ->
|
|||||||
id = p1_rand:get_string(),
|
id = p1_rand:get_string(),
|
||||||
sub_els = [Payload1]}]}}]},
|
sub_els = [Payload1]}]}}]},
|
||||||
ejabberd_router_multicast:route_multicast(State#state.jid, State#state.server_host,
|
ejabberd_router_multicast:route_multicast(State#state.jid, State#state.server_host,
|
||||||
WJ, Packet1, true);
|
WJ, Packet1, false);
|
||||||
true -> ok
|
true -> ok
|
||||||
end,
|
end,
|
||||||
if WN /= [] ->
|
if WN /= [] ->
|
||||||
@ -5113,7 +5113,7 @@ send_subscriptions_change_notifications(From, Nick, Type, State) ->
|
|||||||
id = p1_rand:get_string(),
|
id = p1_rand:get_string(),
|
||||||
sub_els = [Payload2]}]}}]},
|
sub_els = [Payload2]}]}}]},
|
||||||
ejabberd_router_multicast:route_multicast(State#state.jid, State#state.server_host,
|
ejabberd_router_multicast:route_multicast(State#state.jid, State#state.server_host,
|
||||||
WN, Packet2, true);
|
WN, Packet2, false);
|
||||||
true -> ok
|
true -> ok
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user