25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +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">> ->
case xml:get_attr_s(<<"type">>, Attrs) of
<<"chat">> -> route_message(From, To, Packet, chat);
<<"normal">> -> route_message(From, To, Packet, normal);
<<"">> -> route_message(From, To, Packet, normal);
<<"error">> -> ok;
_ ->
Err = jlib:make_error_reply(Packet,