mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
ejabberd_c2s: Don't drop 'user_send_packet' result
When handling a <session/> IQ, use the stanza returned by the 'user_send_packet' hook. Thanks to Evgeniy for spotting this.
This commit is contained in:
parent
7d767fac7f
commit
61cdee97fc
@ -449,11 +449,11 @@ handle_authenticated_packet(Pkt, #{lserver := LServer, jid := JID,
|
|||||||
drop ->
|
drop ->
|
||||||
State2;
|
State2;
|
||||||
#iq{type = set, sub_els = [_]} ->
|
#iq{type = set, sub_els = [_]} ->
|
||||||
case xmpp:get_subtag(Pkt1, #xmpp_session{}) of
|
case xmpp:get_subtag(Pkt2, #xmpp_session{}) of
|
||||||
#xmpp_session{} ->
|
#xmpp_session{} ->
|
||||||
send(State2, xmpp:make_iq_result(Pkt1));
|
send(State2, xmpp:make_iq_result(Pkt2));
|
||||||
_ ->
|
_ ->
|
||||||
check_privacy_then_route(State2, Pkt1)
|
check_privacy_then_route(State2, Pkt2)
|
||||||
end;
|
end;
|
||||||
#presence{to = #jid{luser = LUser, lserver = LServer,
|
#presence{to = #jid{luser = LUser, lserver = LServer,
|
||||||
lresource = <<"">>}} ->
|
lresource = <<"">>}} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user