From 5f0a84a3311a45f0cf32dbca19cfbc292d324c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 30 Oct 2017 17:54:55 +0100 Subject: [PATCH] Show real jid in mucsub subscription change events --- src/mod_muc_room.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 62d2e8814..3a71e63c8 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -1627,8 +1627,7 @@ set_subscriber(JID, Nick, Nodes, StateData) -> store_room(NewStateData), case not ?DICT:is_key(LBareJID, StateData#state.subscribers) of true -> - send_subscriptions_change_notifications(jid:replace_resource(StateData#state.jid, Nick), - Nick, subscribe, NewStateData); + send_subscriptions_change_notifications(BareJID, Nick, subscribe, NewStateData); _ -> ok end, @@ -3802,8 +3801,7 @@ process_iq_mucsub(From, #iq{type = set, sub_els = [#muc_unsubscribe{}]}, NewStateData = StateData#state{subscribers = Subscribers, subscriber_nicks = Nicks}, store_room(NewStateData), - send_subscriptions_change_notifications(jid:replace_resource(StateData#state.jid, Nick), - Nick, unsubscribe, StateData), + send_subscriptions_change_notifications(LBareJID, Nick, unsubscribe, StateData), NewStateData2 = case close_room_if_temporary_and_empty(NewStateData) of {stop, normal, _} -> stop; {next_state, normal_state, SD} -> SD