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:
parent
d3369c83e7
commit
13a9ca65a4
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user