mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Don't reveal invitee's resource when room informs invitor
This commit is contained in:
parent
f675ae1e8c
commit
26b814e367
@ -3849,8 +3849,7 @@ check_decline_invitation(Packet) ->
|
|||||||
%% The original stanza must be slightly modified.
|
%% The original stanza must be slightly modified.
|
||||||
send_decline_invitation({Packet, XEl, DEl = #xmlel{name='decline'}, ToJID},
|
send_decline_invitation({Packet, XEl, DEl = #xmlel{name='decline'}, ToJID},
|
||||||
RoomJID, FromJID) ->
|
RoomJID, FromJID) ->
|
||||||
FromString = exmpp_jid:to_binary(FromJID),
|
FromString = exmpp_jid:bare_to_binary(FromJID),
|
||||||
|
|
||||||
DEl1 = exmpp_xml:remove_attribute(DEl, <<"to">>),
|
DEl1 = exmpp_xml:remove_attribute(DEl, <<"to">>),
|
||||||
DEl2 = exmpp_xml:set_attribute(DEl1, <<"from">>,FromString),
|
DEl2 = exmpp_xml:set_attribute(DEl1, <<"from">>,FromString),
|
||||||
XEl2 = replace_subelement(XEl,DEl2),
|
XEl2 = replace_subelement(XEl,DEl2),
|
||||||
|
Loading…
Reference in New Issue
Block a user