Fix ejabberd command privacy_set

This fixes issue #2205
This commit is contained in:
Paweł Chmielowski 2018-01-04 14:57:26 +01:00
parent dbbe3a9e62
commit 4c799528c7
1 changed files with 4 additions and 5 deletions

View File

@ -1575,14 +1575,13 @@ send_stanza_c2s(Username, Host, Resource, Stanza) ->
end.
privacy_set(Username, Host, QueryS) ->
From = jid:make(Username, Host),
To = jid:make(Host),
Jid = jid:make(Username, Host),
QueryEl = fxml_stream:parse_element(QueryS),
SubEl = xmpp:decode(QueryEl),
IQ = #iq{type = set, id = <<"push">>, sub_els = [SubEl],
from = From, to = To},
mod_privacy:process_iq(IQ),
ok.
from = Jid, to = Jid},
Result = mod_privacy:process_iq(IQ),
Result#iq.type == result.
%%%
%%% Stats