mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Don't store blocked messages in offline queue (thanks to Brian Acton)(EJAB-1224)
This commit is contained in:
parent
9820880cd5
commit
4c147c5f29
@ -618,9 +618,10 @@ route_message(From, To, Packet) ->
|
|||||||
case ejabberd_auth:is_user_exists(exmpp_jid:prep_node_as_list(To),
|
case ejabberd_auth:is_user_exists(exmpp_jid:prep_node_as_list(To),
|
||||||
exmpp_jid:prep_domain_as_list(To)) of
|
exmpp_jid:prep_domain_as_list(To)) of
|
||||||
true ->
|
true ->
|
||||||
ejabberd_hooks:run(offline_message_hook,
|
is_privacy_allow(From, To, Packet) andalso
|
||||||
exmpp_jid:prep_domain(To),
|
ejabberd_hooks:run(offline_message_hook,
|
||||||
[From, To, Packet]);
|
exmpp_jid:prep_domain(To),
|
||||||
|
[From, To, Packet]);
|
||||||
_ ->
|
_ ->
|
||||||
Err = exmpp_stanza:reply_with_error(
|
Err = exmpp_stanza:reply_with_error(
|
||||||
Packet, 'service-unaivailable'),
|
Packet, 'service-unaivailable'),
|
||||||
|
Loading…
Reference in New Issue
Block a user