diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 074564225..4a78ebdc1 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -1026,7 +1026,8 @@ session_established2(El, StateData) -> ejabberd_hooks:run(user_send_packet, Server, [FromJID, ToJID, NewEl]), - ejabberd_router:route(FromJID, ToJID, NewEl), + check_privacy_route(FromJID, StateData, FromJID, + ToJID, NewEl), StateData; _ -> StateData