From 26b814e36723bbd74a1c4c80e14c409ff44a598b Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 8 Dec 2011 16:54:25 +0100 Subject: [PATCH] Don't reveal invitee's resource when room informs invitor --- src/mod_muc/mod_muc_room.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 461cd9660..39140d90e 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -3849,8 +3849,7 @@ check_decline_invitation(Packet) -> %% The original stanza must be slightly modified. send_decline_invitation({Packet, XEl, DEl = #xmlel{name='decline'}, ToJID}, RoomJID, FromJID) -> - FromString = exmpp_jid:to_binary(FromJID), - + FromString = exmpp_jid:bare_to_binary(FromJID), DEl1 = exmpp_xml:remove_attribute(DEl, <<"to">>), DEl2 = exmpp_xml:set_attribute(DEl1, <<"from">>,FromString), XEl2 = replace_subelement(XEl,DEl2),