diff options
author | Paweł Chmielowski <pawel@process-one.net> | 2021-11-10 17:00:42 +0100 |
---|---|---|
committer | Paweł Chmielowski <pawel@process-one.net> | 2021-11-10 17:04:50 +0100 |
commit | 132ebb8f2dbe222db0c4d025c131bb3e525939e8 (patch) | |
tree | 9fa9b8709bddec629cb388cee90b01915bc10994 /src | |
parent | mod_caps: Don't forget caps on XEP-0198 resumption (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc_room.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index a94b7be0..e8b0d1bc 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -5097,7 +5097,7 @@ send_subscriptions_change_notifications(From, Nick, Type, State) -> id = p1_rand:get_string(), sub_els = [Payload1]}]}}]}, ejabberd_router_multicast:route_multicast(State#state.jid, State#state.server_host, - WJ, Packet1, true); + WJ, Packet1, false); true -> ok end, if WN /= [] -> @@ -5113,7 +5113,7 @@ send_subscriptions_change_notifications(From, Nick, Type, State) -> id = p1_rand:get_string(), sub_els = [Payload2]}]}}]}, ejabberd_router_multicast:route_multicast(State#state.jid, State#state.server_host, - WN, Packet2, true); + WN, Packet2, false); true -> ok end. |