mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Don't store blocked messages in offline queue (thanks to Brian Acton)(EJAB-1224)
This commit is contained in:
parent
1c00a9713d
commit
6ae1f62469
@ -573,9 +573,10 @@ route_message(From, To, Packet) ->
|
|||||||
_ ->
|
_ ->
|
||||||
case ejabberd_auth:is_user_exists(LUser, LServer) of
|
case ejabberd_auth:is_user_exists(LUser, LServer) of
|
||||||
true ->
|
true ->
|
||||||
ejabberd_hooks:run(offline_message_hook,
|
is_privacy_allow(From, To, Packet) andalso
|
||||||
LServer,
|
ejabberd_hooks:run(offline_message_hook,
|
||||||
[From, To, Packet]);
|
LServer,
|
||||||
|
[From, To, Packet]);
|
||||||
_ ->
|
_ ->
|
||||||
Err = jlib:make_error_reply(
|
Err = jlib:make_error_reply(
|
||||||
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
||||||
|
Loading…
Reference in New Issue
Block a user