25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Don't reveal invitee's resource when room informs invitor

This commit is contained in:
Badlop 2011-12-08 16:35:31 +01:00
parent d3369c83e7
commit 13a9ca65a4

View File

@ -4004,7 +4004,7 @@ check_decline_invitation(Packet) ->
%% Send the decline to the inviter user.
%% The original stanza must be slightly modified.
send_decline_invitation({Packet, XEl, DEl, ToJID}, RoomJID, FromJID) ->
FromString = jlib:jid_to_string(FromJID),
FromString = jlib:jid_to_string(jlib:jid_remove_resource(FromJID)),
{xmlelement, "decline", DAttrs, DEls} = DEl,
DAttrs2 = lists:keydelete("to", 1, DAttrs),
DAttrs3 = [{"from", FromString} | DAttrs2],