mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Do not bounce normal messages sent to unavailable resource
This commit is contained in:
parent
fba13a0b93
commit
3b267eaa61
@ -539,6 +539,8 @@ do_route(From, To, #xmlel{} = Packet) ->
|
|||||||
<<"message">> ->
|
<<"message">> ->
|
||||||
case xml:get_attr_s(<<"type">>, Attrs) of
|
case xml:get_attr_s(<<"type">>, Attrs) of
|
||||||
<<"chat">> -> route_message(From, To, Packet, chat);
|
<<"chat">> -> route_message(From, To, Packet, chat);
|
||||||
|
<<"normal">> -> route_message(From, To, Packet, normal);
|
||||||
|
<<"">> -> route_message(From, To, Packet, normal);
|
||||||
<<"error">> -> ok;
|
<<"error">> -> ok;
|
||||||
_ ->
|
_ ->
|
||||||
Err = jlib:make_error_reply(Packet,
|
Err = jlib:make_error_reply(Packet,
|
||||||
|
Loading…
Reference in New Issue
Block a user