25
1
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:
Evgeniy Khramtsov 2015-05-19 10:51:49 +03:00
parent fba13a0b93
commit 3b267eaa61

View File

@ -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,