25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Use route instead of send_element to go through standard workflow Offline messages should thus be tracked for ack if needed (TEXTO-226).

Signed-off-by: Evgeniy Khramtsov <ekhramtsov@process-one.net>
This commit is contained in:
Mickaël Rémond 2011-01-04 11:18:14 +00:00 committed by Jerome Sautret
parent a2e1d2030a
commit bd43505db9

View File

@ -2069,11 +2069,13 @@ resend_offline_messages(StateData) ->
jlib:jid_to_string(To),
Attrs),
FixedPacket = {xmlelement, Name, Attrs2, Els},
send_element(StateData, FixedPacket),
ejabberd_hooks:run(user_receive_packet,
StateData#state.server,
[StateData#state.jid,
From, To, FixedPacket]);
%% Use route instead of send_element to go through standard workflow
ejabberd_router:route(From, To, Packet);
%% send_element(StateData, FixedPacket),
%% ejabberd_hooks:run(user_receive_packet,
%% StateData#state.server,
%% [StateData#state.jid,
%% From, To, FixedPacket]);
true ->
ok
end