mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-12 15:57:31 +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:
parent
cffe224d4a
commit
4a9e7f0a3a
@ -2169,11 +2169,13 @@ resend_offline_messages(StateData) ->
|
|||||||
jlib:jid_to_string(To),
|
jlib:jid_to_string(To),
|
||||||
Attrs),
|
Attrs),
|
||||||
FixedPacket = {xmlelement, Name, Attrs2, Els},
|
FixedPacket = {xmlelement, Name, Attrs2, Els},
|
||||||
send_element(StateData, FixedPacket),
|
%% Use route instead of send_element to go through standard workflow
|
||||||
ejabberd_hooks:run(user_receive_packet,
|
ejabberd_router:route(From, To, Packet);
|
||||||
StateData#state.server,
|
%% send_element(StateData, FixedPacket),
|
||||||
[StateData#state.debug, StateData#state.jid,
|
%% ejabberd_hooks:run(user_receive_packet,
|
||||||
From, To, FixedPacket]);
|
%% StateData#state.server,
|
||||||
|
%% [StateData#state.jid,
|
||||||
|
%% From, To, FixedPacket]);
|
||||||
true ->
|
true ->
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user