aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pawel@process-one.net>2022-08-24 10:30:02 +0200
committerPaweł Chmielowski <pawel@process-one.net>2022-08-24 10:30:02 +0200
commita9e85674b80af45b50e0977c31038ffa2e267adc (patch)
tree3596887eae884d013ed39bbcce8ba3b79caf74b2
parentmake-packages: Fix permissions on RPM systems (diff)
Fix mucsub unsubscribe notification payload to have muc_unsubcribe in it
...instead of muc_subscribe
-rw-r--r--src/mod_muc_room.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl
index 961b51762..0df7b420d 100644
--- a/src/mod_muc_room.erl
+++ b/src/mod_muc_room.erl
@@ -4552,14 +4552,14 @@ process_iq_mucsub(From, #iq{type = set, sub_els = [#muc_unsubscribe{}]},
node = ?NS_MUCSUB_NODES_SUBSCRIBERS,
items = [#ps_item{
id = p1_rand:get_string(),
- sub_els = [#muc_subscribe{jid = BareJID, nick = Nick}]}]}}]},
+ sub_els = [#muc_unsubscribe{jid = BareJID, nick = Nick}]}]}}]},
Packet1b = #message{
sub_els = [#ps_event{
items = #ps_items{
node = ?NS_MUCSUB_NODES_SUBSCRIBERS,
items = [#ps_item{
id = p1_rand:get_string(),
- sub_els = [#muc_subscribe{nick = Nick}]}]}}]},
+ sub_els = [#muc_unsubscribe{nick = Nick}]}]}}]},
{Packet2a, Packet2b} = ejabberd_hooks:run_fold(muc_unsubscribed, ServerHost, {Packet1a, Packet1b},
[ServerHost, Room, Host, BareJID, StateData]),
send_subscriptions_change_notifications(Packet2a, Packet2b, StateData),